Skip to content
Permalink
master
Switch branches/tags
Go to file
Latest commit 15632c4 Mar 12, 2016 History
1 contributor

Users who have contributed to this file

5 lines (5 sloc) 227 Bytes
string base64Decoded = "base64 encoded string";
string base64Encoded;
byte[] data = System.Text.ASCIIEncoding.ASCII.GetBytes(base64Decoded);
base64Encoded = System.Convert.ToBase64String(data);
Console.WriteLine(base64Encoded)