diff options
Diffstat (limited to 'IOFileClass/FileManIOFile.hpp')
| -rw-r--r-- | IOFileClass/FileManIOFile.hpp | 22 |
1 files changed, 20 insertions, 2 deletions
diff --git a/IOFileClass/FileManIOFile.hpp b/IOFileClass/FileManIOFile.hpp index 310ded9..7013b27 100644 --- a/IOFileClass/FileManIOFile.hpp +++ b/IOFileClass/FileManIOFile.hpp @@ -50,12 +50,16 @@ class FileManIOFile { */ void read(std::string key); + /** - * @brief Read encrypted file. + * @brief Write data in encrypted file. * * @param key : key to encrypt data + * @param data : data to write * - * Save data to "filename" attribute. + * Write the file with or without key + * To write data without key, you need to read it before (to save the key + * in attribute key; * */ void write(std::string key, std::string data); @@ -63,6 +67,20 @@ class FileManIOFile { /** + * @brief Write data in encrypted file. + * + * @param data : data to write (for MD5) + * @param dataEncrypted : data to write + * + * Write encryptedData to filename + * + */ + void writeRoutine(std::string data, std::string dataEncrypted); + + + + + /** * @brief True if file fully decrypted. * * Return "readable" attribute. |
