Current location: Hot Scripts Forums » Programming Languages » PHP » md5 issue


md5 issue

Reply
  #1 (permalink)  
Old 03-29-06, 04:01 PM
tophat's Avatar
tophat tophat is offline
Newbie Coder
 
Join Date: Dec 2005
Location: Michigan
Posts: 94
Thanks: 0
Thanked 0 Times in 0 Posts
Question md5 issue

hi. i have a site that uses md5 passwords. i need to take the md5 number that was created by converting the user's password into numbers, and reverse it.

i.e., if the md5 was bc8e99f6ecf3f4fa2d3be7a65d4f17f3, and their password was pass, than it would convert that number into pass. i just need to know if there is a function that can do this, because i can't seem to find details on one anywhere...
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiShare on FacebookShare on Stumble UponShare on Twitter
Reply With Quote
  #2 (permalink)  
Old 03-29-06, 04:05 PM
Nico's Avatar
Nico Nico is offline
Community Leader
 
Join Date: Sep 2005
Location: Spain
Posts: 8,074
Thanks: 11
Thanked 88 Times in 83 Posts
Md5 is a one way hash. There's no way to decode it.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiShare on FacebookShare on Stumble UponShare on Twitter
Reply With Quote
  #3 (permalink)  
Old 03-29-06, 06:15 PM
digioz's Avatar
digioz digioz is offline
Community VIP
 
Join Date: Oct 2003
Location: Chicago, IL
Posts: 2,167
Thanks: 3
Thanked 8 Times in 8 Posts
MD5 is a one way hash, as nico_swd said. The only thing that would come close to finding the original of it is:

http://md5.rednoize.com/

But be ready to spend LOTS of time on there to get any type of result.

The way it works is, if you enter a random string, say your name (or password or whatever), into the text box and click search, it will return the md5-hash of that string (and store it in the site’s database. Now take that string, copy it and paste it into the same text box, hit search again, and it will return the original string.

For example, if you type into the search box "5d41402abc4b2a76b9719d911017c592" which is the correct MD5 hash for hello, it will return the converted value, which is "hello".

(Of course the above is meant more as a joke. So please don't email me asking questions about this)
__________________

Last edited by digioz; 03-29-06 at 06:20 PM.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiShare on FacebookShare on Stumble UponShare on Twitter
Reply With Quote
  #4 (permalink)  
Old 03-30-06, 06:00 AM
NeverMind's Avatar
NeverMind NeverMind is offline
Community VIP
 
Join Date: Aug 2003
Location: K.S.A
Posts: 2,257
Thanks: 0
Thanked 2 Times in 1 Post
ohh! that's a dangerous website, digioz!
I think at some time in the future it will be closed since it will be a great source for hackers.
__________________
PHPSimplicity
We don't need a reason to help people - Zidane [FF9]
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiShare on FacebookShare on Stumble UponShare on Twitter
Reply With Quote
  #5 (permalink)  
Old 03-30-06, 10:00 AM
digioz's Avatar
digioz digioz is offline
Community VIP
 
Join Date: Oct 2003
Location: Chicago, IL
Posts: 2,167
Thanks: 3
Thanked 8 Times in 8 Posts
Well, yes and no bud. What the site is suppose to demonstrate is to make people aware that just because something has MD5 / One way hash, it doesn't mean that the original string can not be obtained! In reality any programmer with some free time on their hand and an PC based dictionary can create their own hash database and do the same thing that site is doing to find weak passwords!
__________________
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiShare on FacebookShare on Stumble UponShare on Twitter
Reply With Quote
  #6 (permalink)  
Old 06-29-06, 05:14 AM
juggernaut juggernaut is offline
Newbie Coder
 
Join Date: Jun 2006
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
What if you had a number of loops that go through all possible characters, generate md5 hash and stop if mach is found?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiShare on FacebookShare on Stumble UponShare on Twitter
Reply With Quote
  #7 (permalink)  
Old 06-29-06, 06:46 AM
Rayden Rayden is offline
Newbie Coder
 
Join Date: May 2006
Posts: 62
Thanks: 0
Thanked 0 Times in 0 Posts
what juggernaut is saying is correct...this will work however same rules as any good login& password...the longer the word is the longer you will have to wait till it find a results...
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiShare on FacebookShare on Stumble UponShare on Twitter
Reply With Quote
  #8 (permalink)  
Old 06-29-06, 07:44 AM
Grabber's Avatar
Grabber Grabber is offline
Newbie Coder
 
Join Date: Apr 2006
Posts: 87
Thanks: 0
Thanked 0 Times in 0 Posts
Quote:
Originally Posted by juggernaut
What if you had a number of loops that go through all possible characters, generate md5 hash and stop if mach is found?
and if someone's password is u$@@ndc@n@*776^%^007 then your loop will go crazy
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiShare on FacebookShare on Stumble UponShare on Twitter
Reply With Quote
  #9 (permalink)  
Old 06-30-06, 10:08 AM
digioz's Avatar
digioz digioz is offline
Community VIP
 
Join Date: Oct 2003
Location: Chicago, IL
Posts: 2,167
Thanks: 3
Thanked 8 Times in 8 Posts
To answer your question "tophat", you would have to use a two way encryption schema, if you want to be able to reverse it. This can either be on the Database or on the PHP side.
__________________
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiShare on FacebookShare on Stumble UponShare on Twitter
Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

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
Trackbacks are On
Pingbacks are On
Refbacks are On

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
PHP security issue nitro4file PHP 10 03-30-06 12:16 PM
css issue darkcarnival CSS 4 10-11-05 09:35 PM
Issue Tracking and Task management SlackeR Script Requests 8 10-05-05 05:29 PM
Language issue in from property, Please Help AskAR ASP 0 08-10-05 07:40 AM
Mysql and MD5 nicpon PHP 4 04-23-04 09:58 PM


All times are GMT -5. The time now is 06:14 AM.
vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.