🚧 Possible fix to decryption errors
This commit is contained in:
parent
e355f6979a
commit
f14be006be
1 changed files with 1 additions and 1 deletions
|
@ -13,7 +13,7 @@ export default function getDecryptor(decryptionKeys: [number, number, number]) {
|
||||||
//decrypt byte
|
//decrypt byte
|
||||||
const keyPart = (key2 | 2) & 0xFFFF;
|
const keyPart = (key2 | 2) & 0xFFFF;
|
||||||
const decryptedByte = (keyPart * (keyPart ^ 1)) >>> 8;
|
const decryptedByte = (keyPart * (keyPart ^ 1)) >>> 8;
|
||||||
curChar ^= decryptedByte & 0xFF;
|
curChar = (curChar ^ (decryptedByte & 0xFF)) & 0xFF;
|
||||||
|
|
||||||
//update keys
|
//update keys
|
||||||
[key0, key1, key2] = updateKeys([key0, key1, key2], curChar);
|
[key0, key1, key2] = updateKeys([key0, key1, key2], curChar);
|
||||||
|
|
Loading…
Reference in a new issue