阅读(4037) (0)

Crypt

2019-04-18 18:41:16 更新

crypt库

crypt库fork来自此处. cf仅对其文件进行合并方便编译.

目前支持的加密算法如下:

    "hashkey", "randomkey",
    "desencode", "desdecode",
    "hexencode", "hexdecode",
    "hmac64", "hmac64_md5",
    "dhexchange", "dhsecret",
    "base64encode", "base64decode",
    "sha1", "hmac_sha1",
    "hmac_hash", "xor_str"

API导入方式

local crypt = require "crypt"