
September 25th, 2009, 08:00 AM
|
|
Developer Shed
|
|
Join Date: Jun 2007
Posts: 23,025
Time spent in forums: < 1 sec
Reputation Power: 26
|
|
|
The way to hash your data properly
Let’s face it: the standard hashing functions md5() and sha1() are getting unsafe. There are entire libraries of md5 hash strings, and they get cracked faster every year.
We need an alternative, and the best alternative I’ve found is using the improved version of sha1: sha256. PHP has a nice function to use lot’s of different hash algorithms. This function is, not surprisingly, hash(). So how do we use this function?
Read the full article here: The way to hash your data properly
|