I"m trying to retreive the passwords from database (forgot pasword feature)
This is how password is inserted into database
$password = $_POST['password'];
$result=MYSQL_QUERY("INSERT INTO owners (id,confirmed,confirmcode,name,email,password,phone)"."VALUES ('NULL', '0', '$confirmcode', '$name', '$email', '$password', '$telephone')");
field password is TEXT
heres how i'm trying to retreive the password
$result = mysql_query("SELECT password FROM writers WHERE email='$email'");
$pass = mysql_fetch_object($result);
$pass->password returns a string like "e6b5a70d236a5869e77d7572ac6d98e3"
cant figure out if passwords are encrypted.
Moderator: General Moderators
-
psychotomus
- Forum Contributor
- Posts: 487
- Joined: Fri Jul 11, 2003 1:59 am
No way through php as far as I know but on search I got a url which gives the information on
md5 ecnryption and decryption which on giving the word does encryption and decryption
md5 ecnryption and decryption which on giving the word does encryption and decryption
-
psychotomus
- Forum Contributor
- Posts: 487
- Joined: Fri Jul 11, 2003 1:59 am