Initial commit
This commit is contained in:
commit
b7d90b9afe
16245 files changed
+3396666
No files matched your search
Executable
+27
@@ -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);
|
||||
}
|
||||
Reference in new issue
Block a user