Skip to content

Can set the "encrypt filenames" of 7z? #237

Answered by rikyoz
Polar-Pumpkin asked this question in Q&A
Discussion options

You must be logged in to vote

Hi.
In addition to the setFormatProperty method, you might want to look at the setPassword method overload, which takes a second boolean parameter specifying whether or not to encrypt the headers.
It's perhaps a cleaner way of enabling header encryption, as you don't need any knowledge of 7-Zip format properties to use it (but functionally it's equivalent to what you already did).

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@rikyoz
Comment options

Answer selected by Polar-Pumpkin
@Polar-Pumpkin
Comment options

@rikyoz
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants