Re: encrypting /descrypting a password

From: Date: Fri, 24 Nov 2000 09:55:18 +0000
Subject: Re: encrypting /descrypting a password
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-26921@lists.php.net to get a copy of this message
I'd say go with mysql's own password() method.. insert method: insert into users (id,username,password) values('$id','$username',password('$password')); select method: select id,username,password from users where username = $username and password = password('$password'); // Mattias aka efnet's #php bad2da ----- Original Message ----- From: <hennink@patrijs.max.nl> To: <php-general@lists.php.net> Sent: Friday, November 24, 2000 10:59 AM Subject: [PHP] encrypting /descrypting a password > Hi, > > I'm working on a authorizationenvironment and now I've to decide how to > store my password's in Mysql. > What would be the safiest solution? > What if I choose des to encrypt the given password in de dbase? > How could I check that when a user is logging in that the given password > is > the same as the one that is encrypted because there is no decrypt to see > if the passwords match. > > With regards, > > Tijmen > > -- > Customer: I'm running Windows '98 > Tech: Yes. > Customer: My computer isn't working now. > Tech: Yes, you said that. > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net > For additional commands, e-mail: php-general-help@lists.php.net > To contact the list administrators, e-mail: php-list-admin@lists.php.net > >

« previous php.general (#26921) next »