Can set the "encrypt filenames" of 7z? #237
-
I created a password-protected archive, but I found that I just needed a password for extraction, and I was still free to view the list of files. So I searched for related methods and found that 7zip supports "encrypt file names", which requires a password when opening the archive, can I do this in bit7z? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
I found the |
Beta Was this translation helpful? Give feedback.
Hi.
In addition to the
setFormatProperty
method, you might want to look at thesetPassword
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).