From e261782473194273bf29eb033419501d7baf61be Mon Sep 17 00:00:00 2001 From: manzerbredes Date: Wed, 11 Mar 2015 16:47:05 +0400 Subject: Change AESCrypt to support mutiple key type (string and byte) --- IOFileClass/FileManIOFile.hpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'IOFileClass/FileManIOFile.hpp') diff --git a/IOFileClass/FileManIOFile.hpp b/IOFileClass/FileManIOFile.hpp index 4dfcfc4..fbed051 100644 --- a/IOFileClass/FileManIOFile.hpp +++ b/IOFileClass/FileManIOFile.hpp @@ -58,7 +58,7 @@ class FileManIOFile { * Save data to "filename" attribute. * */ - void write(std::string key, std::string data); + void write(std::string data,std::string key=NULL); /** * @brief True if file fully decrypted. @@ -87,6 +87,8 @@ class FileManIOFile { bool readable; ///< Readable attribute + byte key[32]; ///< Key in SHA-256 + -- cgit v1.2.3