fix
This commit is contained in:
@@ -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 {
|
||||||
|
|||||||
Reference in New Issue
Block a user