* @brief Decrypts a cyphertext binary encrypted with this class with the set key */
| 236 | * @brief Decrypts a cyphertext binary encrypted with this class with the set key |
| 237 | */ |
| 238 | QString Licensing::SimpleCrypt::decryptToString(const QByteArray& cypher) |
| 239 | { |
| 240 | QByteArray ba = decryptToByteArray(cypher); |
| 241 | QString plaintext = QString::fromUtf8(ba, ba.size()); |
| 242 | |
| 243 | return plaintext; |
| 244 | } |
| 245 | |
| 246 | /** |
| 247 | * @brief Decrypts a cyphertext string encrypted with this class with the set key |
no test coverage detected