# crypto
# md5
- 描述
对字符串进行md5加密 - 参数
{string} data
{string} [salt]
- 返回值
{string} result
- 用法
result = md5(data, salt)
# encrypt
- 描述
对字符串或对象进行加密 - 参数
{string | object} data
{object} [options]
{string} [algorithm] ['aes-128-***', 'aes-192-***', 'aes-256-***', ...]
{string} [key]
{string} [iv]
- 返回值
{string} result
- 用法
result = encrypt(data, [options])
# decrypt
- 描述
对加密字符串进行解密 - 参数
{string} data
{object} [options]
{string} [algorithm] ['aes-128-***', 'aes-192-***', 'aes-256-***', ...]
{string} [key]
{string} [iv]
- 返回值
{string | object} result
- 用法
result = decrypt(data, [options])