acmstrenc.cpp 542 B

12345678910111213141516
  1. // acmstrenc.cpp : 定义 DLL 应用程序的导出函数。
  2. //
  3. //#include "stdafx.h"
  4. #include "acmstrenc.h"
  5. #include "libcrypt32.h"
  6. const static unsigned char seed_key []= {0x81,0x32,0x13,0xf5,0x29,0x3b,0x52,0x37,0x61,0x98,0x33,0x15,0x72,0x31,0xfe,0x34};
  7. int encodestring(unsigned char * out ,int outLen,const unsigned char * in,int inLen)
  8. {
  9. unsigned char * rest ;
  10. rest = FieldCrypt(in,inLen,seed_key ,out);
  11. if (rest == 0)
  12. return 0;
  13. else
  14. return 1;
  15. }