From 9f4cec00ee5198027fc3d828927864bd3c8b3941 Mon Sep 17 00:00:00 2001 From: gong <1157756119@qq.com> Date: Tue, 9 Dec 2025 10:10:17 +0800 Subject: [PATCH] =?UTF-8?q?=E5=88=A0=E9=99=A4=E6=97=A0=E7=94=A8=E5=BC=95?= =?UTF-8?q?=E7=94=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- package.json | 1 - src/utils/rsaEncrypt.js | 14 -------------- src/views/login/index.vue | 1 - 3 files changed, 16 deletions(-) delete mode 100644 src/utils/rsaEncrypt.js diff --git a/package.json b/package.json index a966b42..03c5cc7 100644 --- a/package.json +++ b/package.json @@ -52,7 +52,6 @@ "element-plus": "^2.9.3", "exceljs": "^4.4.0", "js-cookie": "^3.0.5", - "jsencrypt": "^3.3.2", "lodash": "^4.17.21", "lodash-es": "^4.17.21", "mitt": "^3.0.1", diff --git a/src/utils/rsaEncrypt.js b/src/utils/rsaEncrypt.js deleted file mode 100644 index 1948ddd..0000000 --- a/src/utils/rsaEncrypt.js +++ /dev/null @@ -1,14 +0,0 @@ -import JSEncrypt from 'jsencrypt/bin/jsencrypt.min' - -// 密钥对生成 http://web.chacuo.net/netrsakeypair - -const publicKey = 'MFwwDQYJKoZIhvcNAQEBBQADSwAwSAJBANL378k3RiZHWx5AfJqdH9xRNBmD9wGD\n' + - '2iRe41HdTNF8RUhNnHit5NpMNtGL0NPTSSpPjjI1kJfVorRvaQerUgkCAwEAAQ==' - -// 加密 -export function encrypt(txt) { - const encryptor = new JSEncrypt() - encryptor.setPublicKey(publicKey) // 设置公钥 - return encryptor.encrypt(txt) // 对需要加密的数据进行加密 -} - diff --git a/src/views/login/index.vue b/src/views/login/index.vue index ea3a3db..d2af88e 100644 --- a/src/views/login/index.vue +++ b/src/views/login/index.vue @@ -55,7 +55,6 @@