This commit is contained in:
aixianling
2025-01-09 17:45:40 +08:00
commit 5c9f1dae4a
3482 changed files with 1146531 additions and 0 deletions

22
sdk/utils/nonuse/EDPass.h Normal file
View File

@@ -0,0 +1,22 @@
#ifndef _ED_PASS_H_
#define _ED_PASS_H_
/**
* 加密密码字符串
* sDest 加密输出缓冲区
* nDestSize 输出缓冲区长度(如果空间足够则会在sDest末尾添加终止字符)
* sPassWord 密码字符串
* sKey128Bit 16字节的密钥字符串
**/
const char* EncryptPassword(char* sDest, int nDestSize, const char* sPassWord, const char* sKey128Bit);
/**
* 解密密码字符串
* sDest 解密输出缓冲区
* nDestSize 输出缓冲区长度(如果空间足够则会在sDest末尾添加终止字符)
* sPassWord 加密过的密码字符串
* sKey128Bit 16字节的密钥字符串
**/
const char* DecryptPassword(char* sPassword, int nPasswordLen, const char* sEncrypted, const char* sKey128Bit);
#endif