$ui/utils/crypto

DES 加密、解密模块

Source:

Methods

(static) base64Decode(text) → {string}

Source:

Base64 解码

Parameters:
Name Type Description
text String

base64密文

Returns:

原始文本

Type
string

(static) base64Encode(text) → {string}

Source:

Base64转码

Parameters:
Name Type Description
text String

文本

Returns:

base64文本

Type
string

(static) decryptByDES(cipherText, key) → {string}

Source:

解密

Parameters:
Name Type Description
cipherText string

密文

key string

秘钥

Returns:
Type
string

(static) encryptByDES(message, key) → {string}

Source:

加密

Parameters:
Name Type Description
message string

需要加密的字符串

key string

秘钥

Returns:
Type
string

(static) md5(text) → {*}

Source:

MD5 加密

Parameters:
Name Type Description
text String

原始文本

Returns:

转md5否的文本

Type
*