diff --git a/src/ssn/decryption/decryptChunk.ts b/src/ssn/decryption/decryptChunk.ts index 5079f64..c6f1c17 100644 --- a/src/ssn/decryption/decryptChunk.ts +++ b/src/ssn/decryption/decryptChunk.ts @@ -10,10 +10,7 @@ export default function decryptChunk(encryptedChunk: Buffer, [key0, key1, key2]: const keyPart = (key2 | 2) & 0xFFFF; const decryptedByte = (keyPart * (keyPart ^ 1)) >>> 8; curChar ^= decryptedByte & 0xFF; - //Skip the first 12 bytes (random encryption header) - if (i >= 12) { - dvOut.setUint8(i - 12, curChar); - } + dvOut.setUint8(i, curChar); //update keys [key0, key1, key2] = updateKeys([key0, key1, key2], curChar);