summaryrefslogtreecommitdiff
path: root/IOFileClass/FileManIOFile.hpp
diff options
context:
space:
mode:
authormanzerbredes <loic.guegan_secondary@yahoo.fr>2015-03-11 16:47:05 +0400
committermanzerbredes <loic.guegan_secondary@yahoo.fr>2015-03-11 16:47:05 +0400
commite261782473194273bf29eb033419501d7baf61be (patch)
treec203598d20746de24f1a635293f2b2ceea86af48 /IOFileClass/FileManIOFile.hpp
parent0b16b8eb9ae5e183d9e5146b3fa268844d69a88b (diff)
Change AESCrypt to support mutiple key type (string and byte)
Diffstat (limited to 'IOFileClass/FileManIOFile.hpp')
-rw-r--r--IOFileClass/FileManIOFile.hpp4
1 files changed, 3 insertions, 1 deletions
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
+