I am coding an application where I send parameters in a URL, but I want these parameters to be encrypted so the user wont understand how the process works.
I chose Base 64
So, I wrote the function that reads Base 64 off the URL and converts it to string. Here it is:
Public Sub FromBase64ToString(ByVal s As String)
Dim base64Encoded As String = s
Dim base64Decoded As String
Dim data() As Byte
data = System.Convert.FromBase64String(base64Encoded)
base64Decoded = System.Text.ASCIIEncoding.ASCII.GetString(data)
End Sub
But what I need is a function that converts String to Base 64 from the side where I form and send the URL to the user.
Where can I find the function that does that?
And Does anyone suggest anything other than base64?
The parameter Im encoding is numeric only.