using System.Security.Cryptography;
public static string Convert(byte @byte)
var result = BitConverter.ToString(new[] { @byte }).Replace("-", string.Empty);
public static string Convert(byte[] bytes)
var result = BitConverter.ToString(bytes).Replace("-", string.Empty);
public static void Main()
Console.WriteLine(Convert(Aes.Create().Key));