Office的CRC算法是用C#实现的吗
我正在寻找 Microsoft Office
http://msdn 定义的 crc 算法的实现.microsoft.com/en-us/library/dd922675.aspx
它已经在某处实施了吗?
I am looking for an implementation of the crc algorithm defined by Microsoft Office
http://msdn.microsoft.com/en-us/library/dd922675.aspx
Is it already implemented somewhere?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
我可能是错的,但我认为如果您细化搜索以查找 Microsoft Office CRC SALT< /a> 你会有更好的运气。
简而言之,CRC 算法应该与其他算法相同,但有时程序有自己的 SALT 来“调味”哈希算法。
I could be mistaken, but i think if you refine your search to look for Microsoft Office CRC SALT you will have better luck.
In short the CRC algorithme should be the same as any other, but some times programs have their own SALT to "spice" up the hash algorithme.
未经测试,但 15 分钟,办公室文章表明这应该可以解决问题。鉴于原始来源允许调用者使用他们想要的任何起始值来播种算法,我不能保证结果将与您正在寻找的任何内容相匹配:MS Office 可以使用 32 位随机数来播种 CRC 计算熵。没有任何内容表明计算应以初始值 0 为种子。
Not tested, but 15 minutes and the office article suggests that this should do the trick. Given that the original source allows the caller to seed the algorithm with whatever starting value they want, There's no guarantee that I see, that the results will match whatever you're looking for: MS Office could seed the CRC computation with 32 bits of random entropy. Nothing says that computation is to be seeded with an initial value of 0.