Re: Secure way to handle pw on session.

From: Date: Sun, 07 Sep 2008 22:52:44 +0000
Subject: Re: Secure way to handle pw on session.
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-279752@lists.php.net to get a copy of this message
You should never store a user's password. Instaed immediatly do an SHA1 hash of the password and compare that to the hashed password in your database. It doesn't make any sense to store passwords in clear text. Even if they found the hash they wouldn't be able to reverse it (hashes are once way since they are like a sum, the inverse is impossible to compute). - Dan

« previous php.general (#279752) next »