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.h File Reference

AES-256-CBC encryption helper for basemap connection passwords. More...

#include <QByteArray>
#include <QString>
Include dependency graph for basemapcrypto.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

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

Detailed Description

AES-256-CBC encryption helper for basemap connection passwords.

Author
Caleb Buahin caleb.nosp@m..bua.nosp@m.hin@g.nosp@m.mail.nosp@m..com
Date
2026

Provides a simple encrypt/decrypt API backed by OpenSSL EVP_* (available via Qt6's Network dependency which already links OpenSSL).

Key derivation: PBKDF2-SHA256, 100,000 iterations. Per-machine passphrase: QCryptographicHash::hash( QSysInfo::machineUniqueId() + "OpenSWMM-BasemapStore-v1", SHA256 ).toHex()

Cipher output format (all stored Base64): [ 16-byte salt | 16-byte IV | ciphertext ]