|
本帖最后由 sakulekingz 于 2014-2-14 15:20 编辑
接口列表:- native AMX_StrToHex(const src[], dest[], len);// 将字符串转换为 16 进制
- native AMX_HexToStr(const src[], dest[], len);// 将 16 进制转换为字符串
- native AMX_AES_EncryptString(const src[], const key[], keybit, dest[], len); // AES 加密
- native AMX_AES_DecryptString(const src[], const key[], keybit, dest[], len); // AES 解密
- native AMX_EncodeQuotedPrintable(const src[], dest[], len); // Quoted 加密
- native AMX_DecodeQuotedPrintable(const src[], dest[], len); // Quoted 解密
- native AMX_EncodeBase64(const src[], dest[], len); // Base64 加密
- native AMX_DecodeBase64(const src[], dest[], len); // Base64 解密
- native AMX_GetCrc32Str(const src[], const srclen, dest[], len);// Crc32 码
- native AMX_EncrypKey(const src[], const key[], dest[], len); // 动态加密
- native AMX_UncrypKey(const src[], const key[], dest[], len); // 动态解密
- native AMX_URLencode(const src[], dest[], len); // URL 转码
- native AMX_HexToInt(const src[]); // 16 进制到整形
- native AMX_IntToHex(const src, dest[], len); // 整形到 16 进制
- native AMX_UTF8Decode(const src[], dest[], len); // 解码UTF8
- native AMX_UTF8Encode(const src[], dest[], len); // 转码UTF8
- native AMX_UTF8ToAnsi(const src[], dest[], len); // 将 UTF8 转为 ANSI
- native AMX_AnsiToUTF8(const src[], dest[], len); // 将 ANSI 转为 UTF8
复制代码 以下是测试内容:
src: This is a string, 杩欐槸涓€涓瓧绗︿覆.
AMX_StrToHex: 54686973206973206120737472696E672C20E8BF99E698AFE4B880E4B8AAE5AD97E7ACA6E4B8B22E
AMX_HexToStr: This is a string, 杩欐槸涓€涓瓧绗︿覆.
AMX_AES_EncryptString: 28000000000000006945AAAD2BDA644BC1554F66A71BDBB7FF84F6166ABCB27C9F6668DE4DA469762FA9D87A6C37AD30D58135EAC6547E1B
AMX_AES_DecryptString: This is a string, 杩欐槸涓€涓瓧绗︿覆.
AMX_EncodeQuotedPrintable: This is a string, =E8=BF=99=E6=98=AF=E4=B8=80=E4=B8=AA=E5=AD=97=E7=AC=A6=E4=B8=B2.
AMX_DecodeQuotedPrintable: This is a string, 杩欐槸涓€涓瓧绗︿覆.
AMX_EncodeBase64: VGhpcyBpcyBhIHN0cmluZywg6L+Z5piv5LiA5Liq5a2X56ym5LiyLg==
AMX_DecodeBase64: This is a string, 杩欐槸涓€涓瓧绗︿覆.
AMX_GetCrc32Str: 878337B9
AMX_EncrypKey: D9459C68BABE4DB2B92A24F60FE43CC1182A2B70559CE8B00E9328CDC0128D1DAB276A65677D586AFC
AMX_UncrypKey: This is a string, 杩欐槸涓€涓瓧绗︿覆.
AMX_URLencode: %54%68%69%73%20%69%73%20%61%20%73%74%72%69%6E%67%2C%20%E8%BF%99%E6%98%AF%E4%B8%80%E4%B8%AA%E5%AD%97%E7%AC%A6%E4%B8%B2%2E
AMX_IntToHex: 80
AMX_HexToInt: 128
AMX_UTF8Decode: This is a string, 这是一个字符串.
AMX_UTF8Encode: This is a string, 杩欐槸涓€涓瓧绗︿覆.
AMX_UTF8ToAnsi: This is a string, 这是一个字符串.
AMX_AnsiToUTF8: This is a string, 杩欐槸涓€涓瓧绗︿覆.
demo已经在附件当中,请自行下载。 |
本帖子中包含更多资源
您需要 登录 才可以下载或查看,没有账号?注个册吧
×
|