Skip to content

Random seek/stream of files inside rar #9

@sgmihai

Description

@sgmihai

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions