📅  最后修改于: 2022-03-11 14:48:41.246000             🧑  作者: Mango
byte[] ba = Encoding.Default.GetBytes("sample");
var hexString = BitConverter.ToString(ba);
hexString = hexString.Replace("-", "");