首页 > TAG信息列表 > encryptedBase64Str

前端AES加密

1.安装依赖 npm install crypto-js 2.引入crypto-js   import CryptoJS from "crypto-js"; //秘钥 const CRYPTOJSKEY = "abcdefgabcdefg12"; // 加密 export function encrypt(plaintText) { var plaintText = plaintText; var options = { mode: CryptoJS