hi friends,
well i have this question that might sound so nieve to some, but i'd apprecaite all your responds
well, i'm working on a project where people register to the website, it stores their username, password, email addres ...etc. into a MySQL database,
verything works fine, except that when i open phpMyAdmin, i can see all the passwords of the users in row format, if he chooses a password "abc" i see it as "abc"
i thought of 2 things to do, but both ways have the same drawback,
first, i used md5() function
second, i used PASSWPRD to head the variable name $password when inserting the data into the MySQL database.
see? they both worked fine, the passwords are now unreadable, but both solutions are 1 way, that means users can't retrive their original passwords when they forget it.
they get the 1hwp231dsa things instead of their original "abc" passwords, that means that both solutions i thought of were 1 way encrypting, i'm looking for a 2 ways encrypting,
i hope u understood my point.
thanks 4 ur efforts 🙂