0

Hi, i have a database which stores admin account details

when an administrator selects to view all acounts is there any way of changing the password do they cannot read them all??

3
Contributors
3
Replies
4
Views
7 Years
Discussion Span
Last Post by leeZA1
0

I don't understand your question what password do you want to change and what are you logging into as admin to view all accounts?

0

It sounds to me like your are storing your passwords as plain text. If this is the case it's always a very bad idea to store your passwords this way. Hashing your passwords before you save them to the database will keep curious admins or mods from being able to view the plain text password, amongst other security benefits. md5 and sha1 are two of the more popular ways to hash a password (or anything else for that matter).

Example:

$hashed_password = md5($password);
0

have got it working after a little looking around, thanks for the suggestions!!

This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.