public static void Main()
{
byte[] bytes = Encoding.Default.GetBytes("ABC123");
Console.WriteLine("Byte Array is: " + String.Join(" ", bytes));
string str = Encoding.Default.GetString(bytes);
Console.WriteLine("The String is: " + str);
}
string bitString = BitConverter.ToString(bytes);
public static void Main()
{
byte[] bytes = Convert.FromBase64String("QUJDMTIz");
Console.WriteLine("Byte Array is: " + String.Join(" ", bytes));
string str = Convert.ToBase64String(bytes);
Console.WriteLine("The String is: " + str);
}
string utfString = Encoding.UTF8.GetString(bytes, 0, bytes.Length);