Commit 1bd11672 by Sxy

fix: 加解密

parent 7f4e4f57
......@@ -306,7 +306,7 @@ class System {
*/
static encryptStr(opStr) {
if (!opStr) {
return "opStr is empty";
return opStr;
}
let keyHex = cryptoJS.enc.Utf8.parse(settings.encrypt_key);
let ivHex = cryptoJS.enc.Utf8.parse(settings.encrypt_secret.substring(0, 8));
......@@ -319,7 +319,7 @@ class System {
*/
static decryptStr(opStr) {
if (!opStr) {
return "opStr is empty";
return opStr;
}
try {
let keyHex = cryptoJS.enc.Utf8.parse(settings.encrypt_key);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment