How to encrypt password in vb.net ?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Prathap
    New Member
    • Nov 2011
    • 37

    How to encrypt password in vb.net ?

    I am a beginner, i have used two text boxes (for username , password) and a button.
    The password should be encrypted and saved in database when i click submit button. Could someone help?
  • pod
    Contributor
    • Sep 2007
    • 298

    #2
    Google your title and you will find plenty of examples ... just try several of them and you can pick whatever is best for you

    Comment

    • kadghar
      Recognized Expert Top Contributor
      • Apr 2007
      • 1302

      #3
      Check out this library:
      System.Security .Cryptography

      Probably you want to use a HASH. This library includes MD5 and SHA1, but if you have some time, Rabbit has written an article about SHA-2 in VB, it could come handy. Here's the link

      Comment

      • Hexabone
        New Member
        • Jan 2012
        • 1

        #4
        Private Sub OK_Click(ByVal sender As System.Object, ByVal e As System.EventArg s) Handles OK.Click
        If txtUName.Text = "User" And txtPassword.Tex t = "admin" Then
        MessageBox.Show ("Comfirm")
        frmMainForm.Sho w()
        Else
        MessageBox.Show ("ERROR")
        If txtUName.Text = "" And txtPassword.Tex t = "" Then
        MessageBox.Show ("Please Type Username and Password")
        End If
        End If
        End Sub

        Comment

        Working...