Finding this function in delphi MD5(tmpBuffer, sizeof(opera_salt) + DES_KEY_SZ, hashSignature1);
I am porting opera re开发者_如何学Pythoncovery from already existing C++ code
http://pastebin.com/ViPf0yn6
I struck at this function
MD5(tmpBuffer, sizeof(opera_salt) + DES_KEY_SZ, hashSignature1);
Where can I get that MD5 unit?
steve0, the code in your link reference to the md5 openssl implementation, you can find the original declaration of the MD5 function used in the code in this link
unsigned char *MD5(const unsigned char *d, unsigned long n, unsigned char *md);
you can use the MessageDigest_5
(since Delphi 2007) unit to calculate the md5 for a buffer or the TIdHashMessageDigest5
class from the indy components.
精彩评论