本文介绍了检查与C#和java兼容的和逻辑。的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
I am using c# code to compute the checksum.
I am using crc32 dll.
i need to send the checksum value to another application, they are using JAVA.
they are also using the same crc32 algorithem.
My c# code below.
<pre> Crc32 achk = new Crc32();
byte [] bytes = System.Text.Encoding.UTF8.GetBytes(6210 | 25042017164248 | Srikanth | 123456 | R | 123456789 | 123456789 | 100 |测试| 10 | srikanth | 8019412555 ||| Srikanth);
achk.Update(bytes);
我的价值是:4140400987
来自他们的结尾,价值是:355590133
请建议兼容c#和java的代码。
我尝试过:
byte[] bytes = System.Text.Encoding.UTF8.GetBytes("6210|25042017164248|Srikanth|123456|R|123456789|123456789|100|test|10|srikanth|8019412555|||Srikanth");
achk.Update(bytes);
My value is: 4140400987
from their end, the value is:355590133
please suggest the code which is both compatible for c# and java.
What I have tried:
check sum logic compatible for c# and java.
推荐答案
这篇关于检查与C#和java兼容的和逻辑。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!