搜索
查看: 5848|回复: 15

[AMXX 无源码] 【发布】各种加密模块发布(附带demo)

[复制链接]
发表于 2014-2-14 15:19:06 | 显示全部楼层 |阅读模式 来自 广东深圳
本帖最后由 sakulekingz 于 2014-2-14 15:20 编辑

接口列表:
  1. native AMX_StrToHex(const src[], dest[], len);// 将字符串转换为 16 进制
  2. native AMX_HexToStr(const src[], dest[], len);// 将 16 进制转换为字符串
  3. native AMX_AES_EncryptString(const src[], const key[], keybit, dest[], len); // AES 加密
  4. native AMX_AES_DecryptString(const src[], const key[], keybit, dest[], len); // AES 解密
  5. native AMX_EncodeQuotedPrintable(const src[], dest[], len); // Quoted 加密
  6. native AMX_DecodeQuotedPrintable(const src[], dest[], len); // Quoted 解密
  7. native AMX_EncodeBase64(const src[], dest[], len); // Base64 加密
  8. native AMX_DecodeBase64(const src[], dest[], len); // Base64 解密
  9. native AMX_GetCrc32Str(const src[], const srclen, dest[], len);// Crc32 码
  10. native AMX_EncrypKey(const src[], const key[], dest[], len); // 动态加密
  11. native AMX_UncrypKey(const src[], const key[], dest[], len); // 动态解密
  12. native AMX_URLencode(const src[], dest[], len); // URL 转码
  13. native AMX_HexToInt(const src[]); // 16 进制到整形
  14. native AMX_IntToHex(const src, dest[], len); // 整形到 16 进制
  15. native AMX_UTF8Decode(const src[], dest[], len); // 解码UTF8
  16. native AMX_UTF8Encode(const src[], dest[], len); // 转码UTF8
  17. native AMX_UTF8ToAnsi(const src[], dest[], len); // 将 UTF8 转为 ANSI
  18. 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已经在附件当中,请自行下载。

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有账号?注个册吧

×

点评

css
貌似是 神仙作品 不知咋用  发表于 2014-2-20 20:55
发表于 2014-2-14 15:27:37 | 显示全部楼层 来自 安徽宿州
我来的好快啊
回复

使用道具 举报

发表于 2014-2-14 18:02:25 | 显示全部楼层 来自 上海
This is a string, 这是一个字符串.

还支持翻译吗;P
回复

使用道具 举报

发表于 2014-2-15 12:38:29 | 显示全部楼层 来自 广东梅州
模块?dll?易语言不知道怎么写
回复

使用道具 举报

发表于 2014-2-16 02:57:08 | 显示全部楼层 来自 台湾台北
有點不太懂這模塊的存在意義
回复

使用道具 举报

 楼主| 发表于 2014-2-16 17:12:37 | 显示全部楼层 来自 广东
jiunnwoei2629 发表于 2014-2-16 02:57
有點不太懂這模塊的存在意義

字符串加密解密,可用于 网络通讯,和比较敏感部分的字符串加密:$
回复

使用道具 举报

发表于 2014-2-16 19:34:12 | 显示全部楼层 来自 天津
大家明显还是喜欢你发一些实用好玩的插件呀
回复

使用道具 举报

发表于 2014-2-16 20:55:13 | 显示全部楼层 来自 内蒙古
[AMXX 无源码] 【发布】各种加密模块发布(附带demo)
回复

使用道具 举报

发表于 2014-2-17 13:40:37 | 显示全部楼层 来自 广东深圳
我曾經要2個功能,給人100塊錢製作了,沒想到這個有這麼多。
我當時找人定制這2個功能:
AMX_UTF8ToAnsi: This is a string, 这是一个字符串.
AMX_AnsiToUTF8: This is a string, 杩欐槸涓€涓瓧绗︿覆
回复

使用道具 举报

发表于 2014-2-17 19:48:49 | 显示全部楼层 来自 北京
看看这个模块
回复

使用道具 举报

游客
回复
您需要登录后才可以回帖 登录 | 注个册吧

快速回复 返回顶部 返回列表