Scenario:
- An old ASP.NET 2.0 application that uses SQL Server 2005.
- Passwords are stored in the database in plain text
- We want to upgrade the app to use forms authentication
- Need to recreate all the passwords just like forms authentication would
Question:
- How do we generate hashed passwords (with salts) using T-SQL for storage in the database that would be identical to the ones that forms authentication would generate:
So how do create this:
DHSicgbY+Av0LyQpBZl2M5EuyOk=
which is a hashed password (plus salt), but using T-SQL instead?