home *** CD-ROM | disk | FTP | other *** search
/ Freesoft 1997 May / Freesoft_1997-05_cd.bin / nerecenz / programers / CRYPT / XCRYPT / XCRYPT.C < prev    next >
C/C++ Source or Header  |  1997-04-01  |  267b  |  16 lines

  1. #include <windows.h>
  2. // #include <ole2.h>
  3. #include "crypt_util.h"
  4.  
  5.  
  6. #define CCONV _stdcall
  7.  
  8. BSTR CCONV xcrypt (BSTR *bstrClearPwd)
  9. {
  10.     BSTR bstrEncPwd;
  11.     bstrEncPwd = SysAllocStringLen(NULL, 13);
  12.     crypt((LPSTR)bstrClearPwd, "as");
  13.     return bstrEncPwd;
  14. }
  15.  
  16.