Files
mir_server/Gateway/srvlib/include/encrypt/EDPass.h
aixianling 5c9f1dae4a init
2025-01-09 17:45:40 +08:00

23 lines
666 B
C
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

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