Click here to Skip to main content
15,898,588 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
First,I want to calculate MD5 of any file.Then the MD5 should be stored.So,I can verify the Integrity of file by comparing the MD5 with the former.
Help me,thanks
Posted

If you do an internet search for vc6 calculate md5 of file you will get lots of solutions.
 
Share this answer
 
Comments
Sergey Alexandrovich Kryukov 1-Apr-11 12:09pm    
It should get. My 5.
I added the answer warning about "broken" MD5 and suggesting SHA1 as alternative.
--SA
Member 10407058 17-Nov-13 10:43am    
I need calculator source in MFC.what can I do?
Don't forget MD5 is considered as "broken". Using it for security purposes is a bad idea. See http://en.wikipedia.org/wiki/MD5[^] for more information.

Recommended replacement would be a cryptographic hash function from SHA family, see http://en.wikipedia.org/wiki/SHA-1[^]. On that page you will find a pseudo-code; implementing of the code would be easy enough.

—SA
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900