Methods
(static) base64Decode(text) → {string}
Base64 解码
Parameters:
Name | Type | Description |
---|---|---|
text |
String | base64密文 |
Returns:
原始文本
- Type
- string
(static) base64Encode(text) → {string}
Base64转码
Parameters:
Name | Type | Description |
---|---|---|
text |
String | 文本 |
Returns:
base64文本
- Type
- string
(static) decryptByDES(cipherText, key) → {string}
解密
Parameters:
Name | Type | Description |
---|---|---|
cipherText |
string | 密文 |
key |
string | 秘钥 |
Returns:
- Type
- string
(static) encryptByDES(message, key) → {string}
加密
Parameters:
Name | Type | Description |
---|---|---|
message |
string | 需要加密的字符串 |
key |
string | 秘钥 |
Returns:
- Type
- string
(static) md5(text) → {*}
MD5 加密
Parameters:
Name | Type | Description |
---|---|---|
text |
String | 原始文本 |
Returns:
转md5否的文本
- Type
- *