How to encrypt a password based on a string
Posted on 2014-02-12
I'm using .NET 4 ASP.NET, the membership is the default settings, I have not made any changes to any settings
How to I encrypt the text value so that the password looks something like this
I think thats sha1, hashed
can someone please send me the code to encrypt text to a password (like the password used in the aspnet_Membership table)
I know .net code takes care of that, but I want to check the password has not been used before, I have another table that I look at for that.
So the user enters a new password, I want to convert the string to a password ("encrypted") and before it gets saved to the aspnet_Membership table, I want to check that in another table, if it exist save it in the aspnet_Membership, else dont save it