View Single Post
Old 02-12-2009, 07:12 PM   #9 (permalink)
Salathe
Moderateur
RegEx Guru PHP Guru Top Contributor Advanced Programmer 
 
Salathe's Avatar
 
Join Date: Apr 2007
Posts: 1,393
Thanks: 5
Salathe is on a distinguished road
Default

Quote:
Originally Posted by ETbyrne View Post
The best idea is to use a combination of encryption methods. I personally use this:

PHP Code:
$newpass sha1(md5('password')); 
That's the best piece of bad advice I've seen all day. Mixing multiple hashing algorithms does not a secure system make. Once an attacker knows that all you're feeding into SHA1 is an unsalted MD5 hash, their life just got way easier.
Salathe is offline  
Reply With Quote