Skip to content

加密解密

框架提供了一些常用的加解密方法可以直接使用。

aesEncrypt2.1.0

对字符串进行AES加密。

参数说明类型默认值
string需要加密的字符串string
key密钥string
ts
import { aesEncrypt } from 'liv-web';

const ciphertext = aesEncrypt('hello word', '123456');