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

Method encryptToString

app/src/Licensing/SimpleCrypt.cpp:141–147  ·  view source on GitHub ↗

* @brief Encrypts the @arg plaintext string with the key the class was initialized */

Source from the content-addressed store, hash-verified

139 * @brief Encrypts the @arg plaintext string with the key the class was initialized
140 */
141QString 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

Callers 9

setKeyMethod · 0.80
nowFlooredMethod · 0.80
runClockRewindCheckFunction · 0.80
saveLastGoodRawIdMethod · 0.80
writeSettingsMethod · 0.80
writeSettingsMethod · 0.80
writeSettingsMethod · 0.80
applyValidatedLicenseMethod · 0.80
setCredentialsMethod · 0.80

Calls

no outgoing calls

Tested by 1

runClockRewindCheckFunction · 0.64