有谁知道 Microsoft SourceSafe 中使用什么 CRC 校验和计算?我想在本地计算校验和并将其与 SourceSafe 校验和进行比较。
我使用的是在互联网上找到的 CRC 算法,但该算法的种子或多项式似乎与 SourceSafe 不同。
最佳答案
查看这篇文章:
http://www.tesoga.com/vssnotes.html
您可能正在寻找的广告是:
And the 16-bit CRC is mostly the standard algorithm. The one difference is that in my experience, CRCs typically start off by initializing the state to -1 (0xFFFFFFFF), accumulating, then returns the logical-NOT of the result. However, the VSS CRC logic initializes state to 0, and does not apply a logical-NOT at the end. Make certain you're using this technique when verifying any CRCs in the file. (Refer to VssCrc32() in CRC32.c for a working implementation.)
他提到的代码包含在这个 zip 文件中:
关于c# - SourceSafe CRC 计算,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/760124/