Answer by
karan0007 (53)
All we have to do is to have a user type in their password and type button "Convert" label come up with encrypted string.
OR like this:
Imports System.Web.Security
PrivateSub btnProcess_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnProcess.Click
Dim encpass AsString = FormsAuthentication.HashPasswordForStoringInConfigFile(txtPassword.Text, "sha1")
lblResult.Text = encpass.ToString()
EndSub