From 32f238b938e2fcfd2efbf5ba1d93d1ab414f5671 Mon Sep 17 00:00:00 2001 From: A1300399510 Date: Fri, 8 Nov 2024 15:52:42 +0800 Subject: [PATCH] no message --- js/common.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/js/common.js b/js/common.js index 3cae01a..aa87151 100644 --- a/js/common.js +++ b/js/common.js @@ -82,15 +82,13 @@ function objectToQueryString(obj = {}) { function decodeKey(encrypted, key) { return new Promise((resolve, reject) => { try { - var decodekey = "894e129983f3a898" - const encryptedData = CryptoJS.enc.Base64.parse(encrypted) const decrypted = CryptoJS.AES.decrypt( { ciphertext: encryptedData, }, - CryptoJS.enc.Utf8.parse(decodekey), + CryptoJS.enc.Utf8.parse(key), { mode: CryptoJS.mode.ECB, padding: CryptoJS.pad.Pkcs7,