Conversion between Base64String and Hexadecimal
FromBase64String will take the string
to byte
s
byte[] bytes = Convert.FromBase64String(string s);
Then, BitConverter.ToString()
will convert a byte array to a hex string ( byte[] to hex string )
string hex = BitConverter.ToString(bytes);