diff --git a/src/ssn/decryption/decryptFile.ts b/src/ssn/decryption/decryptFile.ts index 69f8d36..3ece721 100644 --- a/src/ssn/decryption/decryptFile.ts +++ b/src/ssn/decryption/decryptFile.ts @@ -12,6 +12,7 @@ export default function decryptFile(dv: DataView, length: number, [key0, key1, k //update keys [key0, key1, key2] = updateKeys([key0, key1, key2], curChar); } - //if it was decrypted, we skip the first 12 bytes (random encryption header) - return new DataView(dv.buffer, 12); + + //If it was decrypted, we skip the first 12 bytes (random encryption header) + return new DataView(dv.buffer, 12, dv.byteLength - 12); }