AES first release. Add method to HASHCrypt class.
This commit is contained in:
parent
1574c191c3
commit
7d2c473422
6 changed files with 263 additions and 32 deletions
29
main.cpp
29
main.cpp
|
@ -17,13 +17,10 @@
|
|||
#include <string>
|
||||
|
||||
//----- class -----
|
||||
#include "CryptClass/AESCrypt.hpp"
|
||||
#include "CryptClass/HASHCrypt.hpp"
|
||||
|
||||
|
||||
//----- Prototype -----
|
||||
void aff(std::string chaine);
|
||||
|
||||
|
||||
|
||||
|
||||
/**
|
||||
|
@ -37,30 +34,8 @@ void aff(std::string chaine);
|
|||
int main(int argc, char *argv[]){
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
HASHCrypt hash= HASHCrypt();
|
||||
|
||||
byte code[16];
|
||||
|
||||
hash.getMD5_128("Phrase de test !", code, sizeof(code));
|
||||
|
||||
for(int i=0; i<16;i++){
|
||||
std::cout << code[i];
|
||||
}
|
||||
|
||||
std::cout << "It's work !" << std::endl;
|
||||
|
||||
return 0;
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
//---- Functions -----
|
||||
|
||||
void aff(std::string chaine){
|
||||
std::cout << chaine;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue