03-04-2013, 01:23 AM
(03-03-2013, 08:22 AM)atom Wrote: I am adding WPA/WPA2 and once its done I will release new version
Thanks for that - I'll just write some C++ while I'm waiting!

Code:
//See RFC 1321 for details on how MD5Init, MD5Update, and MD5Final
//calculate a digest for the plain text
MD5Init( &context );
//the alternative to these ugly casts is to go into the RFC code and change the declarations
MD5Update( &context, pszBuffer, nLength );
MD5Final( digest, &context);
//make a string version of the numeric digest value
for ( i = 0; i < 16; i++)
{
pszMD5[ p++ ] = NybbleToHex( (digest[i] >> 4) & 0xf);
pszMD5[ p++ ] = NybbleToHex( digest[i] & 0xf);
}