c# - SourceSafe CRC 计算

标签 c# version-control visual-sourcesafe

有谁知道 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 文件中:

http://www.teachsolaisgames.com/downloads/vsscode.zip

关于c# - SourceSafe CRC 计算,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/760124/

相关文章:

c# - 需要一个 linq to objects 查询嵌套集合

c# - 具有值或 null 的 Entity Framework LINQ

version-control - 公共(public) Perforce 开源存储库?

svn - 备份本地修改的和新的源文件

visual-studio - 从 Visual Studio 6 中删除 SourceSafe 集成

c# - 与存储库模式一起使用时,ServiceStack 操作未显示在元数据中

c# - 序列化我的对象时如何加密选定的属性?

version-control - accurev 从流编号转换为流名称

visual-studio-2008 - 如何在 TFS 中为项目位置添加书签

tfs - 向“TFS”打个招呼。如何从旧版本迁移并成为“more”敏捷者?