6.3.3.23 数据加密
void WINAPI COM_encrypt(char * Source, int PinKey, char * Out)
void WINAPI COM_encrypt2(char * Source, int PinKey, char * Out)
功能: 将给定的 1~10 位字符加密 20 位密文, 超过 10 位原码使用 COM_decrypt2函数,与中间件服务器的脚本语句 ENCRYPT功能相同
参数:
-
Source —原码可见字符,最大长度为 10
-
PinKey —加密码因子,解密时加密码因子必须一致
-
Out —加密码后返回的密文数据,共 20 位字符串
返回:无