IIMarckus
December 6th, 2007, 04:19 PM
Hey guys,
I found a good web host recently, and have been working on a webpage. As an exercise, I'm building a user-based system from the ground up. What should I do for passwords? Obviously it wouldn't be a good idea to store the passwords in plain text in the database... I'm thinking of one-way-encrypting passwords as they come in, and comparing the encrypted versions. Is this a good or feasible idea? If so, what sort of encryption algorithm would be useful?
I'm thinking of one-way-encrypting passwords as they come in, and comparing the encrypted versions.Clarification: encrypting the original password in the database, encrypting user input, and seeing if the encrypted input matches the database's encrypted password.
I found a good web host recently, and have been working on a webpage. As an exercise, I'm building a user-based system from the ground up. What should I do for passwords? Obviously it wouldn't be a good idea to store the passwords in plain text in the database... I'm thinking of one-way-encrypting passwords as they come in, and comparing the encrypted versions. Is this a good or feasible idea? If so, what sort of encryption algorithm would be useful?
I'm thinking of one-way-encrypting passwords as they come in, and comparing the encrypted versions.Clarification: encrypting the original password in the database, encrypting user input, and seeing if the encrypted input matches the database's encrypted password.