LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Programming (https://www.linuxquestions.org/questions/programming-9/)
-   -   c++ md5 (https://www.linuxquestions.org/questions/programming-9/c-md5-175910/)

develinux 04-29-2004 08:08 AM

c++ md5
 
Hello,
Does anybody can give me a c++ piece of code to decrypt a password crypted in md5 using openssl because ther are a lot of functions but I don't understand how to use them.

Thanks
Bye !

jtshaw 04-29-2004 12:09 PM

md5 is one way encryption. You can't take an MD5 hash and come out with the original. What you can do is take what you think the original is, do an md5 sum on it, and compare the hashes.

The OpenSSL MD5 Function Manpage will tell you how to make MD5 hashes.

blacklight332 02-28-2009 10:38 AM

A lot of people use PHP for md5(), and when they use a C++ implementation it doesn't always return the same hash.

This implementation's hashes match that of php .
c++ md5 source code


All times are GMT -5. The time now is 12:15 AM.