Static helper for AES-256-CBC encrypt/decrypt of short strings.
More...
#include <basemapcrypto.h>
|
| static QByteArray | encrypt (const QString &plaintext) |
| | Encrypts plaintext using a machine-derived passphrase.
|
| |
| static QString | decrypt (const QByteArray &cipherBase64) |
| | Decrypts cipherBase64 using a machine-derived passphrase.
|
| |
Static helper for AES-256-CBC encrypt/decrypt of short strings.
◆ BasemapCrypto()
| BasemapCrypto::BasemapCrypto |
( |
| ) |
|
|
delete |
◆ decrypt()
| QString BasemapCrypto::decrypt |
( |
const QByteArray & |
cipherBase64 | ) |
|
|
static |
Decrypts cipherBase64 using a machine-derived passphrase.
- Returns
- Decrypted plaintext, or an empty QString on failure or when the passphrase does not match (wrong machine).
◆ encrypt()
| QByteArray BasemapCrypto::encrypt |
( |
const QString & |
plaintext | ) |
|
|
static |
Encrypts plaintext using a machine-derived passphrase.
- Returns
- Base64-encoded ciphertext, or an empty QByteArray on failure.
The documentation for this class was generated from the following files: