summaryrefslogtreecommitdiffstats
path: root/Cryptor.h
diff options
context:
space:
mode:
authorMalfurious <m@lfurio.us>2024-10-25 03:34:18 -0400
committerMalfurious <m@lfurio.us>2024-10-25 03:34:18 -0400
commita86c2daf3d9958c838c55950a53b4a1d6d99f3d1 (patch)
tree80660a9a058033f475c49cc71c4f18ae7cca14ac /Cryptor.h
parent512aa4c77b3dc0d72db713a9215ff65a98a99ec3 (diff)
parent8455d3e9256bff8d4f74b3606347522ea6c381ca (diff)
downloadcompass-a86c2daf3d9958c838c55950a53b4a1d6d99f3d1.tar.gz
compass-a86c2daf3d9958c838c55950a53b4a1d6d99f3d1.zip
Merge branch 'remove-network'
* remove-network: Remove remote-host and port options Remove Socket class
Diffstat (limited to '')
-rw-r--r--Cryptor.h7
1 files changed, 3 insertions, 4 deletions
diff --git a/Cryptor.h b/Cryptor.h
index f1448b0..6afe6f2 100644
--- a/Cryptor.h
+++ b/Cryptor.h
@@ -5,6 +5,7 @@
#include <string>
#include <fstream>
#include <vector>
+#include <cstring>
#ifdef WIN32
#include <windows.h>
@@ -18,8 +19,6 @@
#include "mbedtls/entropy.h"
#include "mbedtls/sha256.h"
-#include "Socket.h"
-
#define DEF_PASSWD_LENGTH 50
#define AES_BLOCK_LENGTH 16
@@ -43,8 +42,8 @@ struct PasswordSpec {
class Cryptor {
public:
- static void encryptAndSave(std::string remoteHost, std::string port, std::string directory, std::string payload);
- static std::string loadAndDecrypt(std::string remoteHost, std::string port, std::string directory);
+ static void encryptAndSave(std::string directory, std::string payload);
+ static std::string loadAndDecrypt(std::string directory);
static std::string createRandomPassword(PasswordSpec spec);
static void rekey();