Results 1 to 10 of 10

Thread: [2005] Encrypt and Decrypt login

Threaded View

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    Jun 2007
    Posts
    258

    [2005] Encrypt and Decrypt login

    Hi this is where i declare my encryption and decryption in my login form..

    Code:
      Dim strSQL As String = "SELECT * FROM UserLoginProfile WHERE [Username] = '" & txtUserName.Text & "' AND [Password] = '" & EncDec(txtPassword.Text) & "'"
    now this is my public function for the EncDec

    Code:
    Public Function EncDec(ByVal strPassword As String) As String
            Dim Counter As Integer
    
            EncDec = ""
    
            For Counter = 1 To strPassword.Length
                EncDec = EncDec & Chr(Asc(Mid(strPassword, Counter, 1)) + 70)
            Next
    
            Return EncDec
    
        End Function
    it used to work on our VB.Net 03 program so i used in in our other project using VB 05 language.. any help converting / fixing? thanks
    Last edited by aerialz666; Jul 20th, 2007 at 11:37 AM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width