强度 = 测试
The results are not the same I do not know why.
Java 代码
int[] inData = getInt(Str.getBytes("**unicode**"));
for (int i = 0; i < inData.length; i++) {
System.out.println("====EncryStrHex==inData[i]==" + inData[i]);
}
结果
*========*******Encryints====-2
========*******Encryints====-1
========*******Encryints====0
========*******Encryints====116
========*******Encryints====0
========*******Encryints====101
========*******Encryints====0
========*******Encryints====115
========*******Encryints====0
========*******Encryints====116*
c# 代码
byte[] inData = Encoding.**Unicode**.GetBytes(Str);
for (int i = 0; i < inData.Length; i++) {
Console.WriteLine("====EncryStrHex==inData[i]==" + inData[i]);
}
结果
*========*******Encryints====116
========*******Encryints====0
========*******Encryints====101
========*******Encryints====0
========*******Encryints====115
========*******Encryints====0
========*******Encryints====116
========*******Encryints====0*