Login Register


[VB.Net]Base64 Encode/Decode filter_list
Author
Message
[VB.Net]Base64 Encode/Decode #1
Function:

Encode
Code:
Public Function ConvertToBase64(ByVal Input As String) Return Convert.ToBase64String(System.Text.ASCIIEncoding.ASCII.GetBytes(Input)) End Function




Decode
Code:
Public Function ConvertFromBase64(ByVal Input As String) Dim B As Byte() = System.Convert.FromBase64String(Input) Return System.Text.Encoding.UTF8.GetString(B) End Function




Usage:

Code:
MsgBox(ConvertToBase64("hi")) MsgBox(ConvertFromBase64("aGk="))


Spoiler: Credits
Go to completely myself i didn't get any help on this. just a bit exploring the IntelliSense.

If you have any questions, post Smile
Pierce the life fibers with your drill.

Reply

RE: [VB.Net]Base64 Encode/Decode #2
awesome!!! Will use in my bot for sure!!!
Staff will never ever ask you for your personal information.
We know everything about you anyway.

Reply







Users browsing this thread: 1 Guest(s)