Discuz!中的PHP加密解密函数具体是哪些?
- 内容介绍
- 文章标签
- 相关推荐
本文共计607个文字,预计阅读时间需要3分钟。
pythondef authcode(string, operation, key, expiry): # string: 字符串,明文或密文 # operation: DECODE表示解密,其他表示加密 # key: 密钥 # expiry: 密文有效期
if operation==DECODE: # 解密 pass else: # 加密 pass
# 示例 str='abcdef' key='www.helloweba.com' operation='ec'
数authcode($string, $operation, $key, $expiry)中的$string:字符串,明文或密文;$operation:DECODE表示解密,其它表示加密;$key:密匙;$expiry:密文有效期。
本文共计607个文字,预计阅读时间需要3分钟。
pythondef authcode(string, operation, key, expiry): # string: 字符串,明文或密文 # operation: DECODE表示解密,其他表示加密 # key: 密钥 # expiry: 密文有效期
if operation==DECODE: # 解密 pass else: # 加密 pass
# 示例 str='abcdef' key='www.helloweba.com' operation='ec'
数authcode($string, $operation, $key, $expiry)中的$string:字符串,明文或密文;$operation:DECODE表示解密,其它表示加密;$key:密匙;$expiry:密文有效期。

