Posted on: 1/28/2014 11:07:17 PM | Views : 546

Hey,
I am making a register/login form just to test. So basically I register a user into the database and encrypt the password in database. and it works password shows encrypted. When I go to login and put the password in I keep getting errors. Anything I change in my string I keep ending up with error  Invalid length for a Base-64 char array or string.
 
My Code is pasted below. Any help would be appreciated. Please do not forget I ain't no .net Expert I only find my way around and this is the first time I do this kind of coding.

Protected Sub btnLogin_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles btnLogin.Click Try Dim StrPassword As String = Decrypt(tbLoginPassword.Text) Dim Username As New MySqlParameter(& ...

Go to the complete details ...