computing md5 hash

  • Thread starter Thread starter Abubakar
  • Start date Start date
A

Abubakar

Hi,
Working in pure vc++ 2k5 (complete unmanaged), I want to compute md5 hash of
a given file. Any standard windows api available? Any links?

Thanks,

Ab.
 
look on www.sourceforge.com . there are numerous pure C++ cryptography
projects that have libraries for almost every hash function that is in use.

kind regards,
Bruno.
 
Abubakar said:
Hi,
Working in pure vc++ 2k5 (complete unmanaged), I want to compute md5
hash of a given file. Any standard windows api available? Any links?

You can compute MD5 hashes using the Crypto API. It's usually easier to use
a 3rd party library though. One such is Crypto++ which you'll find at
http://www.eskimo.com/~weidai/cryptlib.html

-cd
 
There are functions called MD5Final, MD5Init and MD5Update in advapi32.dll.
The same functions are also in cryptdll.dll (the cryptdll.dll functions are
documented on MSDN but the advapi32.dll functions should be identical)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top