Click here to Skip to main content
16,004,587 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
I am trying to make a login page.
How will be the SQL table when I want to keep password encrypted format.and how I can use session .
Posted
Comments
syed shanu 3-Jun-14 0:29am    
If iam not you want to save the user password as Encrypted text.
During User login you want to retive the encrypted text and decrypt the text in your login page.compare the user entered password with decrypted password.do you want some thing like this ?
barneyman 3-Jun-14 2:41am    
no - don't do this

take a hash of the user password, store that - compare hashes

Do not enrypt passwords, that leaves them open to illegal access. Use proper hashing as described in Secure Password Authentication Explained Simply[^].
 
Share this answer
 
You may want to read this article. A nice article to read:
Salted Password Hashing - Doing it Right[^]
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900