Visit Jeremy's Blog.
Go Back > Forums > Non-*NIX Forums > Programming
User Name
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.


  Search this Thread
Old 04-29-2004, 08:08 AM   #1
LQ Newbie
Registered: Apr 2004
Location: FRANCE
Distribution: Mdk 9.2
Posts: 2

Rep: Reputation: 0
c++ md5

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.

Bye !
Old 04-29-2004, 12:09 PM   #2
Senior Member
Registered: Nov 2000
Location: Seattle, WA USA
Distribution: Ubuntu @ Home, RHEL @ Work
Posts: 3,892
Blog Entries: 1

Rep: Reputation: 67
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.
Old 02-28-2009, 10:38 AM   #3
LQ Newbie
Registered: Feb 2009
Posts: 2

Rep: Reputation: 0
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

Last edited by blacklight332; 02-28-2009 at 10:41 AM.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
what is MD5... JT13 Linux - General 2 06-11-2005 06:31 PM
using iso.md5 and iso.md5.asc Tyir Linux - Newbie 3 07-10-2004 11:45 PM
Md5 LinuxSeeker Linux - General 4 03-15-2004 05:01 PM
md5 vehemon *BSD 1 07-22-2003 08:14 PM
md5? juggernaught *BSD 1 03-28-2003 03:43 PM > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 04:57 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration