[PHP] Re: encrypting passwords, how to decrypt?

2002-01-24 Thread Chris Seymour
[EMAIL PROTECTED] (Hawk) wrote in [EMAIL PROTECTED]: Hi Hawk, Here is a snippet of what I use: if (isset( $txtUsername )) { $sql = Select a.* from admins a where ; $sql .= adm_name = '$txtUsername' ; $sql .= and adm_pwd = PASSWORD('$txtPassword'); $resultID = mysql_query( $sql )

[PHP] Re: encrypting passwords, how to decrypt?

2002-01-17 Thread Philip Hallstrom
If you are going to us encrypted passwords, then it goes something more like this: - user fills out form picking a login and a password. - php encrypts the password using say md5 and puts the encrypted form into the database. - user tries to login typing in their login and password. - php