Corey 0 Report post Posted February 22, 2005 how to convert a md5 code to normal text...i tried to search with google..but no results.. Share this post Link to post Share on other sites
FaLgoR 0 Report post Posted February 22, 2005 I think its impossible.If it would be possible, nobody would use it. Why encript the code if it can easilly be uncripted? Isn't logical?But, you can compare an text with an encripted code to see if they are the same text: <?$var = md5("aaa");$textsent = md5($_POST["someform"]);if($textsent == $var)print "The sent text and the password are the same!";elseprint "The sented text and the password aren't the same!";?><form action="<? echo "$PHP_SELF"; ?>" method="post"><input type="text" name="someform"></form>Got it? But if you want just to unencript the text, forget it.. Share this post Link to post Share on other sites
cse-icons 0 Report post Posted February 23, 2005 (edited) Hi Corey,Md5 is a hash algorithm. i.e., It is a one-way hash which converts plaintext(or any data that is confidential) into a 128 -bit hash value(called message digest ). The algorithm is such that only that plaintext will generate that hash value and no other. I mean there is a one-one relationship between the plaintext and hash. so even if a single bit is change in the plaintext it would generate a different message digest. So when u want a secure data transfer, transfer the file and the message digest separately. the receiver would again generate the digest and check whether both the digests match.. thus proving authenticity.so all in all, md5 does not contain any original text in plain or encrypted form, so there is no way of getting it back.dont know how clear I was but Hope this was a little useful....For More Info refer to this RFC:http://www.faqs.org/rfcs/rfc1321.htmlCheers. Edited February 23, 2005 by cse-icons (see edit history) Share this post Link to post Share on other sites
Corey 0 Report post Posted February 23, 2005 ......i get it now....you can't convert it back to original value...but i found a online database with md5 codes and original values.. Share this post Link to post Share on other sites
Mike 0 Report post Posted February 24, 2005 Many websites create databases with original values and then the MD5 hash that goes along with them. That's called a 'Hash Database' or 'Hash Dictionary'. MD5 is extremely useful for storing passwords. Nobody could read MD5 but the programmed computer therefore, making it an ideal language for message boards; for storing the users' passwords in a database. I mean, what would be the point of making a language that hides original text if you could just decode it easily with a decoder? ._. Share this post Link to post Share on other sites
beeseven 0 Report post Posted February 27, 2005 Yeah, technically you can't turn md5 into plain text, but I've heard it's possible to crack. Another PHP encryption method is sha1(), from which the resulting hash is longer. Of course, there's always sha1(md5(md5(sha1(md5(sha1(sha1(sha1(md5(md5($yourtext)))))))))); for a lot more security. Share this post Link to post Share on other sites