1
0
Fork 0
mirror of https://github.com/seiichiro0185/sailotp.git synced 2024-05-13 06:40:55 +00:00
harbour-sailotp/src/QCipher/src/qcipher.h
seiichiro e2b8ac70a7 Version 1.11.0-1
- Rework Export/Import File Encryption to use C++
- Switch to SHA256 for Export/Import Encryption instead of MD5
- Add FilePicker to select Import File
2023-02-26 16:40:10 +01:00

25 lines
392 B
C++

#ifndef QCIPHER_H
#define QCIPHER_H
#include <QObject>
#include <QString>
#include "cipher.h"
class QCipher : public QObject
{
Q_OBJECT
public:
explicit QCipher(QObject *parent = nullptr);
Q_INVOKABLE QString encrypt(QString plaintext, QString pass);
Q_INVOKABLE QString decrypt(QString ciphertext, QString pass);
private:
Cipher c;
signals:
};
#endif // QCIPHER_H