mirror of
https://gitee.com/dromara/RuoYi-Vue-Plus.git
synced 2026-09-21 02:25:56 +08:00
集成 jsencrypt 实现请求加密传输, 后端可在application.yml中开启, 前端可在.env配置文件IS_ENCRYPT属性修改.
This commit is contained in:
parent
6bc8d38416
commit
5ae176305e
@ -16,7 +16,6 @@ export const generateAesKey = () => {
|
||||
* @returns {string}
|
||||
*/
|
||||
export const encryptWithAes = (message, aesKey) => {
|
||||
console.log(message, aesKey)
|
||||
const encrypted = CryptoJS.AES.encrypt(message, aesKey, {
|
||||
"mode": CryptoJS.mode.ECB,
|
||||
"padding": CryptoJS.pad.Pkcs7
|
||||
|
||||
@ -16,7 +16,6 @@ export const generateAesKey = () => {
|
||||
* @returns {string}
|
||||
*/
|
||||
export const encryptWithAes = (message, aesKey) => {
|
||||
console.log(message, aesKey)
|
||||
const encrypted = CryptoJS.AES.encrypt(message, aesKey, {
|
||||
"mode": CryptoJS.mode.ECB,
|
||||
"padding": CryptoJS.pad.Pkcs7
|
||||
|
||||
Loading…
Reference in New Issue
Block a user