using static System.Console;
public static void Main()
byte[] bytes = new byte[256];
Random rnd = new Random();
heading: "256-MEMBER BYTE ARRAY REPRESENTED IN HEXADECIMAL FORMAT:"
string bytesAsBase64String = Convert.ToBase64String(bytes);
WriteLine(); WriteLine();
text: bytesAsBase64String,
heading: "256-MEMBER BYTE ARRAY REPRESENTED AS 64-BYTE STRING:"
static void WriteOutput(byte[] array, byte lineLength, string heading = "")
if (heading != "") WriteLine(heading);
for (int i = 0; i < array.Length; i++)
Write($"{array[i], 2:X} ");
static void WriteOutput(string text, byte lineLength, string heading = "")
if (heading != "") WriteLine(heading);
for (int i = 0; i < text.Length; i++)