David C
asked on
FormsAuthentication.HashPasswordForStoringInConfigFile for VB
Hi Experts, I have an ASP.NET application that I am using to create hashes when registering a user. On the other hand I have a VB.NET application that is suppose to check this hash to authenticate the user. What is the VB.NET Windows Application equivalent of FormsAuthentication.HashPa sswordForS toringInCo nfigFile please?
This is how I am generating the hash
This is how I am generating the hash
Dim hash As String
hash = FormsAuthentication.HashPasswordForStoringInConfigFile(Label1.Text & "salt", "SHA1")
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Great! First solution works just fine although I think the second is missing the salt?
Second solution is a copy of FormsAuthentication.HashPa sswordForS toringInCo nfigFile function. You can call it in the same way:
Dim hash As String
hash = HashPasswordForStoringInConfigFile(Label1.Text & "salt", "SHA1")
Open in new window