Requirement: I'm want my code to generate an MD5 hash of my file so that people can check it has not been modified

My program is generating files for publication over the Internet and I want it to provide an MD5 hash of the file at the time that the file is generated. This will enable people who download it to generate an MD5 hash of the downloaded file and compare it to the original hash. If the hashes match they can be confident that they have got the same file that was published and that its contents have not been compromised in any way.

I really want the MD5 Hash to be generated from my code and to avoid having to spawn out to a seperate hashing utility or to have an external process hashing the files.



Solutions:

Submit a new solution to this problem >
How to generate an MD5 hash of a file from your program with wodCrypt ActiveX DLL
This solution demonstrates how wodCrypt will quickly and easily generate an MD5 hash for a specified file. wodCrypt is a lightweight component that provides strong encryption for your applications. Whenever you need to secure your transactions, wodCrypt's cryptography can be used. It provides support for most common crypto algorithms .
(C#.Net, VB6\Windows, Winforms)