如何将两个string 进行^异或运算 (急)
如题:
如何将两个string 进行^异或运算
string SChar= "00DE006723AF45DF ";
string SKey= "1011 ";
怎样将SChar 与SKey进行异或;
请各位帮忙一解!
------解决方案--------------------string SChar = "00DE006723AF45DF ";
string SKey = "1011 ";
long l1 = Convert.ToInt64(SChar, 16);
long l2 = Convert.ToInt64(SKey, 16);
long result = l1 ^ l2;