Hush lite wallet
https://faq.hush.is/sdl
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
18 lines
515 B
18 lines
515 B
4 years ago
|
#ifndef FILEENCRYPTION_H
|
||
|
#define FILEENCRYPTION_H
|
||
|
#include <stdio.h>
|
||
|
#include <sodium.h>
|
||
|
#include <QString>
|
||
|
|
||
|
#define FILEENCRYPTION_CHUNK_SIZE 4096
|
||
|
|
||
|
class FileEncryption
|
||
|
{
|
||
|
public:
|
||
|
static void showConfig();
|
||
|
static int encrypt(QString target_file, QString source_file, const unsigned char key[crypto_secretstream_xchacha20poly1305_KEYBYTES]);
|
||
|
static int decrypt(QString target_file, QString source_file, const unsigned char key[crypto_secretstream_xchacha20poly1305_KEYBYTES]);
|
||
|
};
|
||
|
|
||
|
|
||
|
#endif
|