Re: [CodeGallery] MFC MD5 Calculator
- From: "Giovanni Dicanio" <giovanniDOTdicanio@xxxxxxxxxxxxxxxxx>
- Date: Fri, 26 Sep 2008 23:32:49 +0200
"Xavier" <xavier@xxxxxxx> ha scritto nel messaggio news:gbjfq9$9f9$1@xxxxxxxxxxx
With MD5 apis : no Crypto API required...
CryptoAPI is a part of Win32 API, and it seems to ma that is present by default on Windows XP and Windows Vista.
Using CryptoAPI to calculate MD5 makes your code independent from 3rd party DLLs/libraries.
I found an open source MD5 library here:
http://www.fourmilab.ch/md5/
but it was pure C code, and with a style that seems very strange to me:
e.g.
void MD5Update(ctx, buf, len)
struct MD5Context *ctx; unsigned char *buf; unsigned len;
{
...
}
What is this way of defining function parameters??
Is it C 1.0 ?
However, in general, if something is already available in Win32, I prefer using that instead of 3rd party stuff, IMHO.
Giovanni
.
- Follow-Ups:
- Re: [CodeGallery] MFC MD5 Calculator
- From: Joseph M . Newcomer
- Re: [CodeGallery] MFC MD5 Calculator
- References:
- [CodeGallery] MFC MD5 Calculator
- From: Giovanni Dicanio
- Re: [CodeGallery] MFC MD5 Calculator
- From: Xavier
- [CodeGallery] MFC MD5 Calculator
- Prev by Date: Re: Porting from VC6 to VS2005
- Next by Date: Hide a DoModal
- Previous by thread: Re: [CodeGallery] MFC MD5 Calculator
- Next by thread: Re: [CodeGallery] MFC MD5 Calculator
- Index(es):