mirror of
https://github.com/redstrate/Astra.git
synced 2025-04-21 04:07:46 +00:00
19 lines
277 B
C
19 lines
277 B
C
![]() |
#pragma once
|
||
|
|
||
|
#include <QString>
|
||
|
|
||
|
#include <mbedtls/blowfish.h>
|
||
|
|
||
|
class BlowfishSession {
|
||
|
public:
|
||
|
BlowfishSession();
|
||
|
|
||
|
void setKey(QString key);
|
||
|
|
||
|
QByteArray encrypt(QString string);
|
||
|
QString decrypt(QByteArray data);
|
||
|
|
||
|
private:
|
||
|
mbedtls_blowfish_context ctx;
|
||
|
};
|