Hiding password

Ask about general coding issues or problems here.

Moderators: macek, egami, gesf

Post Reply
New php-forum User
New php-forum User
Posts: 147
Joined: Tue Nov 19, 2002 7:47 am
Location: US, Ohio

Post by Skeletor » Tue Apr 08, 2003 6:45 am

You could store the password in md5() format. Before writting it to the file, do:
$password = md5($password);

then when comparing another password against it, just md5 it before the comparison.

if (md5($password2) == $password) {
blah, blah, blah

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest