1.安装插件
npm install crypto-js
2.使用
import CryptoJS from 'crypto-js';
const key = 'abcdefg';
const keyHex = CryptoJS.enc.Utf8.parse(key);
// 加密
const encryptDES
1.安装插件
npm install crypto-js
2.使用
import CryptoJS from 'crypto-js';
const key = 'abcdefg';
const keyHex = CryptoJS.enc.Utf8.parse(key);
// 加密
const encryptDES