In my database table there are 2 columns:
1. SaltPassword
2. HashPassword
Below is the HTML code for Login page:
<div class="form-group col-md-12">
<input id="txtLoginId" runat="server" class="form-control" placeholder="Login ID" />
<input id="txtPass" runat="server" class="form-control" placeholder="Password" />
<div class="col-xs-4 col-sm-4 col-md-4">
<asp:Button ID="btnSave" runat="server" Text="Login" class="btn save" OnClick="btnSave_Click"/>
</div>
<div class="col-xs-4 col-sm4-3 col-md-4">
<asp:Button ID="Button1" runat="server" Text="Forget Password" class="btn save" OnClientClick="window.open('ForgotPassword.aspx', 'ForgotPassword');"/>
</div>
</div>
Now, when user input password in Password textbox then it should get save into 2 different columns of database as defined above.
How to generate Salt and Hash Password for user input (Password textbox) ?
Please let me know how to achieve it.