This commit is contained in:
Naiel
2026-03-03 11:06:30 +01:00
committed by GitHub
parent f655a736b3
commit 03f52c8a92

View File

@@ -949,9 +949,11 @@ function TS_decrypt(input, secret, callback, table, id) {
} }
// Encrypted format marker: RSA{<ciphertext>} where <ciphertext> is CryptoJS AES output // Encrypted format marker: RSA{<ciphertext>} where <ciphertext> is CryptoJS AES output
console.debug(input);
if (input.startsWith('RSA{') && input.endsWith('}') && typeof CryptoJS !== 'undefined') { if (input.startsWith('RSA{') && input.endsWith('}') && typeof CryptoJS !== 'undefined') {
try { try {
var data = input.slice(4, -1); var data = input.slice(4, -1);
console.debug("TS_decrypt secret:", ">" + secret + "<", typeof secret, secret?.length);
var words = CryptoJS.AES.decrypt(data, secret); var words = CryptoJS.AES.decrypt(data, secret);
var decryptedUtf8 = null; var decryptedUtf8 = null;
try { try {