I'm using this encrypting function psoted by a member:
Public Function SimpleCrypt(ByVal Text As String)
Dim strTempChar As String = ""
Dim i As Integer
For i = 1 To Text.Length
If Asc(Mid$(Text, i, 1)) < 128 Then
strTempChar = _
CType(Asc(Mid$(Text, i, 1)) + 128, String)
ElseIf Asc(Mid$(Text, i, 1)) > 128 Then
strTempChar = _
CType(Asc(Mid$(Text, i, 1)) - 128, String)
End If
Mid$(Text, i, 1) = _
Chr(CType(strTempChar, Integer))
Next i
Return Text
End Function
My problem is when i try to encrypt a string containing the number '5'.
On my database(oracle 11g r2 XE) the number 5 is encrypted as the letter M, but on VB it shows as ยต. So when I compare the contents of the my password textbox to the one in my database, they won't match.