C# byte[] 转 字符串 互转

向 hexstring 转

var bytes = Encoding.ASCII.GetBytes("adjdkfk");
var hex = Convert.ToHexString(bytes);
var bs = Convert.FromHexString(hex);

向 其它 base64 等...

原文地址:https://www.cnblogs.com/microestc/p/15518679.html