From 1c6f11fdd85f2842eab5376c25a0acce535437f8 Mon Sep 17 00:00:00 2001 From: Loic GUEGAN Date: Fri, 6 Mar 2015 11:06:27 +0400 Subject: Création du projet ! MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- CryptClass/HASHCrypt.hpp | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 CryptClass/HASHCrypt.hpp (limited to 'CryptClass/HASHCrypt.hpp') diff --git a/CryptClass/HASHCrypt.hpp b/CryptClass/HASHCrypt.hpp new file mode 100644 index 0000000..2b7fc96 --- /dev/null +++ b/CryptClass/HASHCrypt.hpp @@ -0,0 +1,35 @@ +//----- Includes std ----- + +#include + + +//----- Includes crypto++ ----- +#define CRYPTOPP_ENABLE_NAMESPACE_WEAK 1 + +//Pour le calcule de la somme de controle MD5 +#include "crypto++/md5.h" +//Pour la convertion en hexadécimal et vice-versa +#include "crypto++/hex.h" + + +/*----- Description ----- +Classe executant divers fonctions de hashage sur +un attribut chain en utilisant la bibiothèque crypto++ +*/ + +class HASHCrypt{ + + public: + HASHCrypt(std::string chain); + ~HASHCrypt(); + + std::string getMD5_32(); //Calcule de la somme de controle MD5 sur 32bit + std::string getMD5_128(); //Calcule de la somme de controle MD5 sur 128bit + + + + private: + std::string chain; //Attribut paramètre des fonctions de hashage + + +}; -- cgit v1.2.3