string s1 = Regex.Replace("EB64A98AB180C035A620F0979C29E304", @".{2}(?!$)", "$0-");
string s = "";
string[] keys = s1.Split('-');//读取用空格分成的16进制码
foreach (string key in keys)
{
int code = int.Parse(key, NumberStyles.HexNumber);
//int code = Convert.ToInt32(key, 16);
char c = (char)code;
s += c.ToString();
}
Console.WriteLine(s)
这个结果和
'EB64A98AB180C035A620F0979C29E304'.decode('hex')
还是不一样啊
#5
改了一下
string s1 = Regex.Replace("EB64A98AB180C035A620F0979C29E304", @".{2}(?!$)", "$0-");
string[] keys = s1.Split('-');//读取用空格分成的16进制码
var buff = new byte[keys.Length];
for (int i = 0; i < keys.Length; i++) {
string s1 = Regex.Replace("EB64A98AB180C035A620F0979C29E304", @".{2}(?!$)", "$0-");
string[] keys = s1.Split('-');//读取用空格分成的16进制码
var buff = new byte[keys.Length];
for (int i = 0; i < keys.Length; i++) {
string s1 = Regex.Replace("EB64A98AB180C035A620F0979C29E304", @".{2}(?!$)", "$0-");
string s = "";
string[] keys = s1.Split('-');//读取用空格分成的16进制码
foreach (string key in keys)
{
int code = int.Parse(key, NumberStyles.HexNumber);
//int code = Convert.ToInt32(key, 16);
char c = (char)code;
s += c.ToString();
}
Console.WriteLine(s)
这个结果和
'EB64A98AB180C035A620F0979C29E304'.decode('hex')
还是不一样啊
改了一下
string s1 = Regex.Replace("EB64A98AB180C035A620F0979C29E304", @".{2}(?!$)", "$0-");
string[] keys = s1.Split('-');//读取用空格分成的16进制码
var buff = new byte[keys.Length];
for (int i = 0; i < keys.Length; i++) {
string s1 = Regex.Replace("EB64A98AB180C035A620F0979C29E304", @".{2}(?!$)", "$0-");
string s = "";
string[] keys = s1.Split('-');//读取用空格分成的16进制码
foreach (string key in keys)
{
int code = int.Parse(key, NumberStyles.HexNumber);
//int code = Convert.ToInt32(key, 16);
char c = (char)code;
s += c.ToString();
}
Console.WriteLine(s)
这个结果和
'EB64A98AB180C035A620F0979C29E304'.decode('hex')
还是不一样啊
#5
string s1 = Regex.Replace("EB64A98AB180C035A620F0979C29E304", @".{2}(?!$)", "$0-");
string s = "";
string[] keys = s1.Split('-');//读取用空格分成的16进制码
foreach (string key in keys)
{
int code = int.Parse(key, NumberStyles.HexNumber);
//int code = Convert.ToInt32(key, 16);
char c = (char)code;
s += c.ToString();
}
Console.WriteLine(s)
这个结果和
'EB64A98AB180C035A620F0979C29E304'.decode('hex')
还是不一样啊
改了一下
string s1 = Regex.Replace("EB64A98AB180C035A620F0979C29E304", @".{2}(?!$)", "$0-");
string[] keys = s1.Split('-');//读取用空格分成的16进制码
var buff = new byte[keys.Length];
for (int i = 0; i < keys.Length; i++) {
string s1 = Regex.Replace("EB64A98AB180C035A620F0979C29E304", @".{2}(?!$)", "$0-");
string[] keys = s1.Split('-');//读取用空格分成的16进制码
var buff = new byte[keys.Length];
for (int i = 0; i < keys.Length; i++) {
string s1 = Regex.Replace("EB64A98AB180C035A620F0979C29E304", @".{2}(?!$)", "$0-");
string s = "";
string[] keys = s1.Split('-');//读取用空格分成的16进制码
foreach (string key in keys)
{
int code = int.Parse(key, NumberStyles.HexNumber);
//int code = Convert.ToInt32(key, 16);
char c = (char)code;
s += c.ToString();
}
Console.WriteLine(s)
这个结果和
'EB64A98AB180C035A620F0979C29E304'.decode('hex')
还是不一样啊
改了一下
string s1 = Regex.Replace("EB64A98AB180C035A620F0979C29E304", @".{2}(?!$)", "$0-");
string[] keys = s1.Split('-');//读取用空格分成的16进制码
var buff = new byte[keys.Length];
for (int i = 0; i < keys.Length; i++) {
string s1 = Regex.Replace("EB64A98AB180C035A620F0979C29E304", @".{2}(?!$)", "$0-");
string[] keys = s1.Split('-');//读取用空格分成的16进制码
var buff = new byte[keys.Length];
for (int i = 0; i < keys.Length; i++) {
string s1 = Regex.Replace("EB64A98AB180C035A620F0979C29E304", @".{2}(?!$)", "$0-");
string s = "";
string[] keys = s1.Split('-');//读取用空格分成的16进制码
foreach (string key in keys)
{
int code = int.Parse(key, NumberStyles.HexNumber);
//int code = Convert.ToInt32(key, 16);
char c = (char)code;
s += c.ToString();
}
Console.WriteLine(s)
这个结果和
'EB64A98AB180C035A620F0979C29E304'.decode('hex')
还是不一样啊
改了一下
string s1 = Regex.Replace("EB64A98AB180C035A620F0979C29E304", @".{2}(?!$)", "$0-");
string[] keys = s1.Split('-');//读取用空格分成的16进制码
var buff = new byte[keys.Length];
for (int i = 0; i < keys.Length; i++) {