Re: Adding encryption to passwords

From: Date: Fri, 19 Sep 2008 15:49:11 +0000
Subject: Re: Adding encryption to passwords
References: 1 2 3  Groups: php.general 
Request: Send a blank email to php-general+get-280512@lists.php.net to get a copy of this message
On Sep 19, 2008, at 9:00 AM, Nathan Rixham wrote:
Per Jessen wrote:
Thodoris wrote:
So what do you think is the best way to use crypt, mcrypt, hash or perhaps md5 and what are really the differences because I am not sure if I get it right.
We use md5 for that sort of thing. /Per Jessen, Zürich
sha 256 is my prefered encryption, no collision to speak of or decrytion tables; also returns back a 64char string; which can be stored in a mysql BINARY(64) column which is v fast with the appropriate index.
If you're using MySQL: http://dev.mysql.com/doc/refman/5.0/en/encryption-functions.html We use AES de/encryption. Works well. =D ~Philip

« previous php.general (#280512) next »