Skip to content

Commit cec3bbc

Browse files
committed
Update decrypt_v1.decryptor.js
1 parent 9eaa6c7 commit cec3bbc

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/parsers/decryptors/decrypt_v1.decryptor.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ export async function decryptSources_v1(id, name, type) {
2323
);
2424
const encrypted = rawSourceData?.sources;
2525
if (!encrypted) throw new Error("Encrypted source missing in response");
26-
const decrypted = CryptoJS.AES.decrypt(encrypted, key).toString(
26+
const decrypted = CryptoJS.AES.decrypt(encrypted, key.trim()).toString(
2727
CryptoJS.enc.Utf8
2828
);
2929
if (!decrypted) throw new Error("Failed to decrypt source");

0 commit comments

Comments
 (0)