Free hash [A reusable CRC-32 HashAlgorithm implementation for .NET]
**
This blog has moved to a new location and comments have been disabled.
All old posts, new posts, and comments can be found on The blog of dlaa.me.
See you there!
Comments
Anonymous
January 20, 2009
Last week, I released the ComputeFileHashes tool for calculating file checksums . (To read more aboutAnonymous
January 22, 2009
While working on code for an upcoming blog post, I found myself dealing with the HashAlgorithm.HashSizeAnonymous
January 26, 2009
The comment has been removedAnonymous
February 16, 2009
Kind reader Gregor Zurowski contacted me over the weekend to let me know that he was using my free CRC-32Anonymous
January 31, 2011
Found it odd that the first byte that I put through this caused a Arithmetic Overflow Exception. However the fix was to change this: byte index = (byte)(_crc32Value ^ array[i]); into: var index = (_crc32Value ^ array[i]) & 0xFF; On the plus side, surely the bitwise and is faster than a type cast...Anonymous
January 31, 2011
The comment has been removedAnonymous
March 16, 2013
The comment has been removedAnonymous
March 16, 2013
Alex Smith, You're calling HashAlgorithm.Create which is documented to return a SHA1 implementation: msdn.microsoft.com/.../b0ky3sbb.aspx You should new up an instance of CRC32 directly. Hope this helps!