MCPcopy Create free account
hub / github.com/Windscribe/Desktop-App / encryptToString

Method encryptToString

src/client/client-common/utils/simplecrypt.cpp:143–149  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

141}
142
143QString 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
151QString SimpleCrypt::encryptToString(QByteArray plaintext)
152{

Callers 9

saveToSettingsMethod · 0.80
saveMethod · 0.80
saveGuiSettingsMethod · 0.80
writeToSettingsMethod · 0.80
writeToSettingsMethod · 0.80
saveToSettingsMethod · 0.80
saveToSettingsMethod · 0.80
saveToSettingsMethod · 0.80

Calls 1

toBase64Method · 0.80

Tested by

no test coverage detected