-
Notifications
You must be signed in to change notification settings - Fork 6
Description
I am searching for a library that can be used to retrieve arbitrary byte ranges of a file inside a .rar archive.
The main use case is archives without compression (store/save) but that have password protection.
Is this possible to do in this scenario ? I am pretty sure the store/save would allow fast skips to desired byte ranges, since there's nothing to decompress, just a file container like .tar, but I am not sure about passworded ones. My findings so far suggest that it's possible, you only need to read the previous block data to decrypt the one that you are interested in.
In the scenario of compression, are there any optimisations that could be done to start uncompressing from a close point before the actually needed data range? For solid archives at least, this should be actually impossible.
Also, if this would be feasable to introduce in your library.