🎨 Minor code quality improvement in decryptFile
This commit is contained in:
parent
a2044887e8
commit
beb2d351da
1 changed files with 3 additions and 2 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue