Implement FileManIOFileClass, general bug correction.
This commit is contained in:
parent
998745fe45
commit
783197aaa1
8 changed files with 228 additions and 18 deletions
17
main.cpp
17
main.cpp
|
@ -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;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue