XX CMake Package
Loading...
Searching...
No Matches
XX::ShallowCrypt Class Reference

uses a simple XOR cipher + some additional obfuscations More...

#include <XXShallowCrypt.h>

Detailed Description

uses a simple XOR cipher + some additional obfuscations

THIS IS NOT A SAFE ENCRYPTION!

see https://en.wikipedia.org/wiki/XOR_cipher

Public Member Functions

 ShallowCrypt (QByteArray key=QSysInfo::machineUniqueId(), QCryptographicHash::Algorithm algorithm=QCryptographicHash::Sha1)
 no key => no encryption!
QByteArray bury (const QString &plainText) const
QString revive (const QByteArray encryptedText) const

Constructor & Destructor Documentation

◆ ShallowCrypt()

XX::ShallowCrypt::ShallowCrypt ( QByteArray key = QSysInfo::machineUniqueId(),
QCryptographicHash::Algorithm algorithm = QCryptographicHash::Sha1 )

no key => no encryption!

Member Function Documentation

◆ bury()

QByteArray XX::ShallowCrypt::bury ( const QString & plainText) const

◆ revive()

QString XX::ShallowCrypt::revive ( const QByteArray encryptedText) const

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