摘要:
import CryptoJS from "crypto-js" //秘钥(后端提供)由于对称解密使用的算法是 AES-128-CBC算法,数据采用 PKCS#7 填充 , 因此这里的 key 需要为16位! var key = CryptoJS.enc.Latin1.parse("xxxxxx") 阅读全文
摘要:
1、以下仅适用于数据长度短,长的话会报错import { JSEncrypt } from 'jsencrypt' // 公钥 const key = `xxxx` // 私钥 const privateKey = `xxxxsss` // 加密 export function encrypt (m 阅读全文