1
Fork 0
mirror of https://github.com/redstrate/Astra.git synced 2025-04-20 19:57:45 +00:00
astra/src/blowfish.h

19 lines
282 B
C
Raw Normal View History

#pragma once
#include <QString>
#include <mbedtls/blowfish.h>
class BlowfishSession {
public:
BlowfishSession();
2021-11-09 15:02:17 -05:00
void setKey(unsigned int key);
QByteArray encrypt(QString string);
QString decrypt(QByteArray data);
private:
mbedtls_blowfish_context ctx;
};