SWMMVis  6.0.0-alpha.4
Qt6/C++ GIS-based graphical user interface for the SWMMVis engine (6.0.0-alpha.4)
Loading...
Searching...
No Matches
BasemapCrypto Class Reference

Static helper for AES-256-CBC encrypt/decrypt of short strings. More...

#include <basemapcrypto.h>

Collaboration diagram for BasemapCrypto:

Public Member Functions

 BasemapCrypto ()=delete
 

Static Public Member Functions

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.
 

Detailed Description

Static helper for AES-256-CBC encrypt/decrypt of short strings.

Constructor & Destructor Documentation

◆ BasemapCrypto()

BasemapCrypto::BasemapCrypto ( )
delete

Member Function Documentation

◆ 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).
Here is the caller graph for this function:

◆ 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.
Here is the caller graph for this function:

The documentation for this class was generated from the following files: