| 400 | } |
| 401 | |
| 402 | bool WizAESEncryptStringToBase64String(const QString& password, \ |
| 403 | const QString& inStr, QString& outBase64Str) |
| 404 | { |
| 405 | QByteArray ret; |
| 406 | if (!WizAESEncryptToString((const unsigned char*)password.toUtf8().constData(), inStr.toUtf8().constData(), ret)) |
| 407 | return false; |
| 408 | // |
| 409 | WizBase64Encode(ret, outBase64Str); |
| 410 | return true; |
| 411 | } |
| 412 | |
| 413 | bool WizAESDecryptToString(const unsigned char* cipher, \ |
| 414 | const QByteArray& inStr, QByteArray& outStr) |
no test coverage detected