Initial commit

This commit is contained in:
torsten committed 2026-08-13 18:33:10 +02:00
commit b7d90b9afe
16245 files changed
+3396666

No files matched your search

+27
View File
@@ -0,0 +1,27 @@
/**
* @RDE_HEADER@
* Crypt/Decrypt functions (AES 256 CBC)
* $Id$
* $HeadURL$
* $Author$
*/
#pragma once
#include <QtCore/QString>
#include <LtsLicence/ltslicence_export.h>
namespace LtsLicence
{
// set the passphrase (if the default one is not the desired one)
LTSLICENCE_EXPORT void setPassPhrase(const QString &passPhrase);
LTSLICENCE_EXPORT QString passPhrase();
// enrcypt data (passphrase is set via setPassPhrase())
LTSLICENCE_EXPORT QByteArray decryptData(const QByteArray &dataToDecrypt,
const QString &pw = passPhrase(),
bool *bOk = nullptr);
// decrpyt data (passphrase is set via setPassPhrase())
LTSLICENCE_EXPORT QByteArray encryptData(const QByteArray &dataToEncrypt,
const QString &pw = passPhrase(),
bool *bOk = nullptr);
}