Jump to content

md5 + rainbow tables


slarson20

Recommended Posts

google is indeed a wicked tool.

 

in a nutshell:

 

when you use md5() or any other hashing (hashing is not encrypting) function. The string that got in, gets transformed into a fix length string that hides the original string. Opposed to encryption, that uses a key (to decrypt/ 'open'). You can't decrypt a hash, since there is no key. It;s one way.

 

for instance:

 

monkeys becomes HJJAUudfisiufa666547HGhHHd (I just made that up ;) )

 

A rainbow table stores common words like monkey and most other words you find in a dictionary. So ones someone got into your database he sees those hashes you stored and just compares them with his rainbow table to maybe use those on your customers email, or paypal accounts. Most people use the same password for everything....

 

Now if you use a salt. for instance:  *776**&DHuswu#@#@%^&^@!&*@&*^2112$%5~

 

The string isn't monkeys but monkeys + that weird salt, and than it gets hashed. And since that combination is very unlikely to end up in a dictionary (unless real monkeys took over the redaction). It's unlikely to exist in the attackers rainbow table, thus making it more secure.

 

That's it.

 

P.s. google is your friend!

Link to comment
Share on other sites

What if you md5 the password and then send it to the server using Ajax, how do you md5+salt once it is already md5 once?

 

oh sorry i forgot to thank, lol im tired.

 

Thanks you 2 for the good replies.

 

There is no good reason to md5 (hash) something twice. in fact it makes your stuff less secure, (why? because of the fix length input for the second hash). Anyway the answer to your thread is given. Keep it to the point and mark it solved ones the answer is given. And above all this forum is flooded with questions and answers on this hashing stuff. try it out...

Link to comment
Share on other sites

if you already md5-ed it, you are to late. Because the trick of a salt is what? (see above...)

 

And ofcourse you want to keep your salt secret.  Because that is what makes:

the common word monkeys into a word that does not exist in the dictionary and after that you hash it.

 

if you use javascript (client side) it will be in plain site.

Link to comment
Share on other sites

ohhhh if you dont hide it they can make a rainbow database, based off your salt. right?

exactly because than they just take the normal dictionary and append your salt to it, create the hashes and compare them again with your stored values.

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

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.