acmstrdec.cpp 464 B

123456789101112131415
  1. // acmstrdec.cpp : 定义 DLL 应用程序的导出函数。
  2. //
  3. //#include "stdafx.h"
  4. #include "acmstrdec.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 decodestring(unsigned char * out ,int outLen,const unsigned char * in,int inLen)
  8. {
  9. unsigned char * rest = FieldDecrypt(in,inLen,seed_key ,out);
  10. if (rest == 0)
  11. return 0;
  12. else
  13. return 1;
  14. }