static void Main(string[] args)
{
string toEncode = "This will be base64 encoded!";
string encoded = Convert.ToBase64String(System.Text.Encoding.Default.GetBytes(toEncode));
Console.WriteLine(encoded);
}
Be sure to have the same Defaul Encoder where you decode the string ![]()