Re: Is this secure
- From: Ray Booysen <rj_booysen_NS@xxxxxxxxxx>
- Date: Thu, 11 May 2006 09:06:08 +0100
Gef.Mongoose@xxxxxxxxx wrote:
What would be considered a secure way to store passwords?Hi Gef
Paul
I use SHA1 to hash my passwords. When a user is created on my site, his password prefixed with a randomly generated salt and hashed with SHA1. Both the hashed password and salt are stored in the database.
When the user logs in, his password is sent to the SQL server in plain text through a stored proc and the stored procedure returns whether it is correct or not, the salt and hash never leave the database once there.
If the user changes their password a new salt is generated and stored again in the database.
Hope this helps.
Regards
Ray
.
- Follow-Ups:
- Re: Is this secure
- From: Gef . Mongoose
- Re: Is this secure
- From: Gef . Mongoose
- Re: Is this secure
- References:
- Is this secure
- From: Gef . Mongoose
- Re: Is this secure
- From: Gef . Mongoose
- Is this secure
- Prev by Date: ASP.NET 2.0 first event to create/access session in Global.asax?
- Next by Date: Session management
- Previous by thread: Re: Is this secure
- Next by thread: Re: Is this secure
- Index(es):
Relevant Pages
|