From 34b47f8e08eff519f6c8372f2e4ce5b24267614c Mon Sep 17 00:00:00 2001 From: manzerbredes Date: Wed, 11 Mar 2015 17:21:24 +0400 Subject: Arrange FileManIOFile class --- IOFileClass/FileManIOFile.hpp | 22 ++++++++++++++++++++-- 1 file changed, 20 insertions(+), 2 deletions(-) (limited to 'IOFileClass/FileManIOFile.hpp') diff --git a/IOFileClass/FileManIOFile.hpp b/IOFileClass/FileManIOFile.hpp index 310ded9..7013b27 100644 --- a/IOFileClass/FileManIOFile.hpp +++ b/IOFileClass/FileManIOFile.hpp @@ -50,18 +50,36 @@ 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); void write(std::string data); + /** + * @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. * -- cgit v1.2.3