In my spare time I have implemented a simple Visual C++ application to show the power of Microsoft Crypt Library. The following functions have been implemented and tested using MD5 checksum and RC4 encryption/decryption:
  • BOOL GetChecksumBuff er(ALG_ID nAlgorithm, LPBYTE lpszOutputBuffe r, DWORD& dwOutputLength, LPBYTE lpszInputBuffer , DWORD dwInputLength);
  • BOOL GetChecksumStri ng(ALG_ID nAlgorithm, CString& strResult, CString strBuffer);
  • BOOL
...