update// added filesystem and reformated addressbook

This commit is contained in:
Strider
2020-05-17 13:18:19 +02:00
parent 57a5df8ae7
commit 4f584ac86e
22 changed files with 615 additions and 8 deletions

View File

@@ -0,0 +1,18 @@
#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