mznjs API Documentation - v0.0.31-beta.5
Docs
GitHub
Changelog
Preparing search index...
utils/src
plugin
crypto
decrypt
Function decrypt
decrypt
(
value
:
string
,
secretKey
?:
string
)
:
string
解密函数,用于解密使用AES算法加密的字符串。
Parameters
value
:
string
已加密的字符串,格式为 "iv:encryptedValue"。
secretKey
:
string
= 'your-secret-key'
用于解密的密钥,默认值为 'your-secret-key'。
Returns
string
解密后的字符串。
Throws
如果输入的值不是字符串。
Throws
如果输入格式无效或解密失败。
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
GitHub Repository
Docs
GitHub
Changelog
mznjs API Documentation - v0.0.31-beta.5
Loading...
解密函数,用于解密使用AES算法加密的字符串。