webforms - ASP.NET password hashing and password salt -


I am creating a custom "add user" page in ASP.Net web forms and there is a problem I can include the data, but the passwords are stored in plain text and password salt is given strictly.

How do I go about howhing a password so that users can log in (as a password hash check for membership structure and not a clear text password). Also, is salt completely random or is it anyway connected to the password hash?

Any help would be greatly appreciated,

Mark

  & lt; Subscription default provider = "SqlProvider" userIsOnlineTimeWindow = "15" & gt; & Lt; Providers & gt; & Lt; Clear /> & Lt; Add name = "SqlProvider" type = "System.Web.Security.SqlMembershipProvider" connectionStringName = "MySqlConnection" APPLICATIONNAME = "MyApplication" enablePasswordRetrieval = "false" enablePasswordReset = "true" requiresQuestionAndAnswer = "true" requiresUniqueEmail = "true" passwordFormat = " Hz "/> & Lt; / Providers & gt; & Lt; / Subscription & gt;   

Look for the line where passwordFormat = "Hashed" has been mentioned. You need to get this setting working for the password. There are three values ​​that you have chosen, and you configure your application accordingly.

Comments