miurahr / py7zr

7zip in python3 with ZStandard, PPMd, LZMA2, LZMA1, Delta, BCJ, BZip2, and Deflate compressions, and AES encryption.

Home Page:https://pypi.org/project/py7zr/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Option for Encrypting Archive without Compression

CelebStalker opened this issue · comments

I have pre compressed photos and videos I'd like to archive, but wouldn't like the program to spend time on compression. Is there an option to just apply encryption without file compression in the program?

py7zr accept a filter value.
https://py7zr.readthedocs.io/en/latest/api.html#possible-filters-value

You can find several examples like

7zAES + LZMA
[{'id': FILTER_LZMA}, {'id': FILTER_CRYPTO_AES256_SHA256}]

7zAES + Deflate
[{'id': FILTER_DEFLATE}, {'id': FILTER_CRYPTO_AES256_SHA256}]

7zAES + BZip2
[{'id': FILTER_BZIP2}, {'id': FILTER_CRYPTO_AES256_SHA256}]

7zAES + ZStandard
[{'id': FILTER_ZSTD}, {'id': FILTER_CRYPTO_AES256_SHA256}]

What is a 7zAES only array?

I'm unable to find filter that allows encryption with zero compression (like a direct store).
Any suggestion as to which filter allows to do what the screenshot allows?

Screenshot_20221113_010022

FILTER_COPY

Thank You