View Single Post
Old 07-06-2004, 11:09 AM   #1 (permalink)
sde
Moderator
 
sde's Avatar
 
Join Date: May 2002
Location: us.ca
Posts: 4,489
sde is on a distinguished road
Working with an encrypted password in a class.

I have a User class. For simplicity let's say this class has 2 members: username, password.

The encrypted password is stored in the database.

Would you store the plain text password as the value of the password string? or would you store the encrypted value as it is in the database?

password = "mypass"
vs.
password = "23lkfsdf9823lksdfi23kjsdf"

( that is supposed to look encrypted )
__________________
Mike
sde is offline   Reply With Quote