how to manage password in MSSQL server
Page 1 of 1
how to manage password in MSSQL server i want to know the technique used to manage password in MSSQL
#2
Posted 19 March 2009 - 03:53 AM
You should never store a password in clear text. What you should do is create a hash of it with SHA and save the string that results from the hash. When you want to compare to the user input, hash the user input the same way then compare against the previously hashed value in the database.
#3
Posted 20 March 2009 - 07:25 AM
I agree here. I just finished an application where I save the password as a binary which is the result of MD5 hash. This is real simple to accomplish in .NET. MD5 is a 1 way encryption, which, for passwords it isn't important to decrypt it. You simply match the MD5 hash to what is stored.
Good luck.
Kurt
Good luck.
Kurt
#4
Posted 21 March 2009 - 03:05 PM
Hi,
If you have only one database username, then I agree with the preceding answers.
Otherwise is better to delegate user access control to SQL Server (use Windows integrated security, SQL Server security or mixed mode, your choice!). This avoids the need to store username and passwords (or digests).
Best regards
If you have only one database username, then I agree with the preceding answers.
Otherwise is better to delegate user access control to SQL Server (use Windows integrated security, SQL Server security or mixed mode, your choice!). This avoids the need to store username and passwords (or digests).
Best regards
This post has been edited by almogaver: 21 March 2009 - 03:07 PM
Page 1 of 1

Start a new topic
Add Reply




MultiQuote




| 


