diff options
| author | manzerbredes <loic.guegan_secondary@yahoo.fr> | 2015-03-11 09:51:03 +0400 |
|---|---|---|
| committer | manzerbredes <loic.guegan_secondary@yahoo.fr> | 2015-03-11 09:51:03 +0400 |
| commit | 783197aaa13abbfb7757ecec912dfe9cb6e52c75 (patch) | |
| tree | 399f42e41babbcf697f21c30f4cabb1f121e6c34 /main.cpp | |
| parent | 998745fe45c89570bd1d02e0e60199fc535da89b (diff) | |
Implement FileManIOFileClass, general bug correction.
Diffstat (limited to 'main.cpp')
| -rw-r--r-- | main.cpp | 17 |
1 files changed, 9 insertions, 8 deletions
@@ -17,9 +17,9 @@ #include <string> //----- class ----- -#include "CryptClass/AESCrypt.hpp" -#include "CryptClass/HASHCrypt.hpp" - +#include "AESCrypt.hpp" +#include "HASHCrypt.hpp" +#include "FileManIOFile.hpp" @@ -34,17 +34,18 @@ int main(int argc, char *argv[]){ std::string chaine="It's work !"; - + std::string key="loic"; AESCrypt aes; - chaine=aes.encrypt("loic", chaine); - std::cout << chaine << std::endl; + FileManIOFile fichier = FileManIOFile("Doxygen/bob2.bin"); - chaine=aes.decrypt("loic", chaine); + fichier.write(key,chaine); - std::cout << chaine << std::endl; + fichier.read(key); + if(fichier.isReadable()) + std::cout << fichier.getData(); return 0; |
