MCPcopy Create free account
hub / github.com/Serial-Studio/Serial-Studio / decryptToString

Method decryptToString

app/src/Licensing/SimpleCrypt.cpp:238–244  ·  view source on GitHub ↗

* @brief Decrypts a cyphertext binary encrypted with this class with the set key */

Source from the content-addressed store, hash-verified

236 * @brief Decrypts a cyphertext binary encrypted with this class with the set key
237 */
238QString 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

Callers 6

keyMethod · 0.80
nowFlooredMethod · 0.80
loadLastGoodRawIdMethod · 0.80
readSettingsMethod · 0.80
readSettingsMethod · 0.80
credentialsMethod · 0.80

Calls 1

sizeMethod · 0.45

Tested by

no test coverage detected