Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
CRC32 returns negative on big files
Message
From
29/07/2011 16:17:40
 
 
To
29/07/2011 15:22:42
General information
Forum:
ASP.NET
Category:
Coding, syntax and commands
Environment versions
Environment:
VB 9.0
OS:
Windows 7
Network:
Windows 2003 Server
Database:
MS SQL Server
Application:
Web
Miscellaneous
Thread ID:
01519635
Message ID:
01519643
Views:
39
Aren't there already CRC32 classes out there you could use without reinventing the wheel? e.g. Google [.net crc32 class] yields http://blogs.msdn.com/b/delay/archive/2009/01/14/free-hash-a-reusable-crc-32-hashalgorithm-implementation-for-net.aspx , amongst others.

If there is any security requirement to what you're doing you'd probably be better off using an SHA hash. MD5 is now considered broken for serious security purposes.

http://msdn.microsoft.com/en-us/library/system.security.cryptography.sha1.aspx
Regards. Al

"Violence is the last refuge of the incompetent." -- Isaac Asimov
"Never let your sense of morals prevent you from doing what is right." -- Isaac Asimov

Neither a despot, nor a doormat, be

Every app wants to be a database app when it grows up
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform