• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Password Encoding/decoding

 
san patil
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
I am looking for solution to encode and decode the password. I have developed a web application where I have stored User names and passwords in a dat file. I want to protect passwords from administrator.
Any solutions?
Thanks,
San
 
damien malone
Ranch Hand
Posts: 35
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If you dont want administrators to see the password then the easiest way os to simply not store it. Instead, store a hash (maybe MD5, it has fairly good performance) of the password. When the user trys to log in, just run the hashing algorithm against the password they supplied and if they match, let them in. If you use a good algorithm like MD5 you are virtually guaranteed that the password is correct, and no administrator would be able to recreate the password even if they had access to the encoded password.
Hope this helps
Damien
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic