While I was building my blog, I looked up password hashing (encryption) to see if there had been any changes to the 'norm' way of doing things since I last looked into the matter last year. Well, there has been.
According to Gregory Boshoff's comment in the PHP documentation, he states that the SHA1 hash algorithm has been comprimised and he recommends using some of the new hash algorithms. One of the new algorithms he recommends is SHA512.
To use it, apply the following code,
hash ("sha512", "Your string to hash");
This will give you a 128 character string. Please note that you will need PHP 5.1.2 and above to use this algorithm.
There are currently no comments for this post.