| 141 | } |
| 142 | |
| 143 | QString SimpleCrypt::encryptToString(const QString& plaintext) |
| 144 | { |
| 145 | QByteArray plaintextArray = plaintext.toUtf8(); |
| 146 | QByteArray cypher = encryptToByteArray(plaintextArray); |
| 147 | QString cypherString = QString::fromLatin1(cypher.toBase64()); |
| 148 | return cypherString; |
| 149 | } |
| 150 | |
| 151 | QString SimpleCrypt::encryptToString(QByteArray plaintext) |
| 152 | { |
no test coverage detected