Re: Adding encryption to passwords

From: Date: Fri, 19 Sep 2008 14:00:48 +0000
Subject: Re: Adding encryption to passwords
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-280501@lists.php.net to get a copy of this message
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.

« previous php.general (#280501) next »