Using command line, I know that I can encrypt a directory with the following command:
zip -er Directory.zip /path/to/directory
However, this does not encrypt the filenames themselves. If someone runs:
unzip Directory.zip
and repeatedly enters a wrong password, the unzip command will loop through all of the contained filenames until the correct password is entered. Sample output:
unzip Directory.zip
Archive: Directory.zip
creating: Directory/
[Directory.zip] Directory/sensitive-file-name-1 password:
password incorrect--reenter:
password incorrect--reenter:
skipping: Directory/sensitive-file-name-1 incorrect password
[Directory.zip] Directory/sensitive-file-name-2 password:
password incorrect--reenter:
password incorrect--reenter:
skipping: Directory/sensitive-file-name-2 incorrect password
[Directory.zip] Directory/sensitive-file-name-3 password:
password incorrect--reenter:
password incorrect--reenter:
skipping: Directory/sensitive-file-name-3 incorrect password
and so on.
Using command line, is there a way to zip a directory with encryption while also encrypting or hiding the filenames themselves?
Thank you.
7zip
since it uses AES based encryption.