Jump to content

'Best' hash function?


Stooney

Recommended Posts

With md5 compromised and sha1 following close behind, which hashing function(s) would you guys consider the most reliable (in terms of lasting as long as possible before it's not considered secure enough to use)?

 

I'm considering either sha256 or sha512, any others that are worth considering?

 

Edit:  this is for storing user passwords in a mysql database.  And come to think of it this has nothing to do with php. 

Link to comment
Share on other sites

Collisions are easier to find with md5 hashes because the algorithm only makes one pass over the data.  Also, there's a number of rainbow tables available for a reverse md5 hash lookup.  I keep reading everywhere that it should be avoided.

 

I've also read that sha-1 is close to sharing the same fate.  Now that computers are getting faster it's getting easier to find collisions with sha1 hashes (right now it still take a $30m machine to do it a reasonable time frame, but just give it a few years). 

 

So that leaves me considering sha-2.  I'm just curious if there's any others I haven't heard of that are as good as or better than sha-2.

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.