diff options
author | Malfurious <m@lfurio.us> | 2024-10-25 03:34:18 -0400 |
---|---|---|
committer | Malfurious <m@lfurio.us> | 2024-10-25 03:34:18 -0400 |
commit | a86c2daf3d9958c838c55950a53b4a1d6d99f3d1 (patch) | |
tree | 80660a9a058033f475c49cc71c4f18ae7cca14ac /Cryptor.h | |
parent | 512aa4c77b3dc0d72db713a9215ff65a98a99ec3 (diff) | |
parent | 8455d3e9256bff8d4f74b3606347522ea6c381ca (diff) | |
download | compass-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.h | 7 |
1 files changed, 3 insertions, 4 deletions
@@ -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();
|