Posted on: 12/16/2014 5:35:06 AM | Views : 477

Hello
My form inserts a username, password, and email address into my Access database, but I am having trouble inserting a salted/hashed password instead of a plain text password. I have one database table with three columns: username, password, email.
My salt/hash code is in my aspx.vb file (of both Register.aspx and Login.aspx) and I do not get any debug errors. I am having a problem, however, with this line:
                  cmd.Parameters.AddWithValue("@password", HashPassword(password.Text))
The error is: Argument not specified for parameter 'hash' of 'Private Shared Function HashPassword(clearData As String, saltValue As String, hash As System.Security.Cryptography.HashAlgorithm) As String'.
The salt/hash code is this:
Private Shared Function GenerateSaltValue() As String Dim Salt ...

Go to the complete details ...