p7zip-project / p7zip

A new p7zip fork with additional codecs and improvements (forked from https://sourceforge.net/projects/sevenzip/ AND https://sourceforge.net/projects/p7zip/).

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

In-place archive decryption

AstroSnail opened this issue · comments

commented

I have a question: is it possible to decrypt an encrypted 7z archive in-place, similarly to zipcloak -d for zip?

If not, are there alternative steps that achieve a similar effect? (preserve metadata, ideally also preserve compression and file order)

commented

You can use a shell script to unpack and repack the xxx.7z file and add whatever you want.

commented

that shell script method risks losing metadata (i tested this and the file attributes were not preserved), and is extremely slow (and space-inefficient if done naively). it's not exactly what i'm asking for. i'd like a method that doesn't lose metadata, and ideally simply decrypts the compressed files instead of de- and re-compressing

commented

Sorry, the 7z doesn't have zipcloak feature.