From bbfdf67777b9f78bdd5592b863d93b0448ce2fd3 Mon Sep 17 00:00:00 2001 From: Loic GUEGAN Date: Sat, 7 Mar 2015 19:59:15 +0400 Subject: Classe HASHCrypt totalement revue et pensée. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- main.cpp | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) (limited to 'main.cpp') diff --git a/main.cpp b/main.cpp index cb3bf44..fc3b22a 100644 --- a/main.cpp +++ b/main.cpp @@ -15,9 +15,21 @@ void aff(std::string chaine); //----- Program Start ----- int main(){ - HASHCrypt hash= HASHCrypt("Chaine de test"); - aff(hash.getMD5_128()); + + + + + 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]; + } + return 0; -- cgit v1.2.3