getRandomStr() getRandomStr( $len, $special = true) : string 本函数用于获得随机字符串 Parameters $len 需要的长度 $special 是否需要特殊符号 Returns string — 返回随机字符串
authcode() authcode(mixed $string, mixed $operation = 'DECODE', mixed $key = '', mixed $expiry) : mixed Parameters mixed $string mixed $operation mixed $key mixed $expiry Returns mixed —
revEnc() revEnc(string $string, string $operation = 'encode', string $key = 'token') : string 本函数用来可逆字符串加密解密 Parameters string $string 原始字符串 或 已转码字符串 string $operation | 模式:加密encode,解密decode string $key | 加密密码 - 默认"token" Returns string —
read_something() read_something( $a, $kill) : array 本函数用来分割文本,早期代码,对explode格式反转,更易使用 Parameters $a 文本 $kill 分割标准 Returns array — 分割后的数组
string_encode() string_encode(string $string, string $secret, bool $return = false) : string 本函数用来加密字符串 Parameters string $string 需要加密的数据 string $secret 加密用的密钥 bool $return 是否返回,默认不返回直接输出 Returns string — 返回加密后的数据
string_decode() string_decode(string $string, string $secret, bool $return = false) : string 本函数用来解密字符串 Parameters string $string 需要解密的数据 string $secret 解密用的密钥 bool $return 是否返回,默认不返回直接输出 Returns string — 返回解密后的数据