We have just released the first tool in our new Tools section. It’s a unicode compatible base64 encoder/decoder, which uses HTML, AngularJs and Bootstrap.
If you have any questions or suggestions feel free post a comment or Contact Us via Email.
We have just released the first tool in our new Tools section. It’s a unicode compatible base64 encoder/decoder, which uses HTML, AngularJs and Bootstrap.
If you have any questions or suggestions feel free post a comment or Contact Us via Email.
To encode and decode Base64 in PHP you can use the following snippet.
function EncodeBase64($input) { return base64_encode($input); } function DecodeBase64($input) { return base64_decode($input); }
To encode and decode Base64 in C# and VB.NET you can use the following snippet.
1 2 3 4 5 6 7 8 9 |
public string EncodeBase64(string input) { return System.Convert.ToBase64String(System.Text.Encoding.UTF8.GetBytes(input)); } public string DecodeBase64(string input) { return System.Text.Encoding.UTF8.GetString(Convert.FromBase64String(input)); } |
1 2 3 4 5 6 7 |
Public Function EncodeBase64(input As String) As String Return System.Convert.ToBase64String(System.Text.Encoding.UTF8.GetBytes(input)) End Function Public Function DecodeBase64(input As String) As String Return System.Text.Encoding.UTF8.GetString(Convert.FromBase64String(input)) End Function |
If you have any questions or suggestions feel free to rate this snippet, post a comment or Contact Us via Email.
Related links: