* @brief Encrypts the @arg plaintext string with the key the class was initialized */
| 139 | * @brief Encrypts the @arg plaintext string with the key the class was initialized |
| 140 | */ |
| 141 | QString Licensing::SimpleCrypt::encryptToString(const QString& plaintext) |
| 142 | { |
| 143 | QByteArray plaintextArray = plaintext.toUtf8(); |
| 144 | QByteArray cypher = encryptToByteArray(plaintextArray); |
| 145 | QString cypherString = QString::fromLatin1(cypher.toBase64()); |
| 146 | return cypherString; |
| 147 | } |
| 148 | |
| 149 | /** |
| 150 | * @brief Encrypts the @arg plaintext QByteArray with the key the class was |
no outgoing calls