Jump to content
xisto Community
Sign in to follow this  
Corey

Md5

Recommended Posts

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

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.html

Cheers.

Edited by cse-icons (see edit history)

Share this post


Link to post
Share on other sites

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

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

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×
×
  • Create New...

Important Information

Terms of Use | Privacy Policy | Guidelines | We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.