7-Zip doesn't ask me for a password for a ZIP file I encrypted while double-clicking it
Hire the world's top talent on demand or became one of them at Toptal: https://topt.al/25cXVn
and get $2,000 discount on your first invoice
--------------------------------------------------
Take control of your privacy with Proton's trusted, Swiss-based, secure services.
Choose what you need and safeguard your digital life:
Mail: https://go.getproton.me/SH1CU
VPN: https://go.getproton.me/SH1DI
Password Manager: https://go.getproton.me/SH1DJ
Drive: https://go.getproton.me/SH1CT
Music by Eric Matyas
https://www.soundimage.org
Track title: Puzzle Game 5 Looping
--
Chapters
00:00 7-Zip Doesn'T Ask Me For A Password For A Zip File I Encrypted While Double-Clicking It
00:19 Answer 1 Score 1
00:33 Answer 2 Score 12
00:57 Accepted Answer Score 67
01:28 Answer 4 Score 2
01:48 Thank you
--
Full question
https://superuser.com/questions/70313/7-...
--
Content licensed under CC BY-SA
https://meta.stackexchange.com/help/lice...
--
Tags
#windows #commandline #passwords #zip #7zip
#avk47
ACCEPTED ANSWER
Score 67
The ZIP format doesn't allow for encrypting file lists. This means that file lists are viewable by anyone.
Only the contents of the files is encrypted, which means that no one can read the file without your password.
Due to this, 7-Zip only asks for your password before unzipping.
If you need a format that encrypts the file list, use 7Z
and make sure you check "Encrypt File Names".
For the more technical minded, the ZIP specification doesn't allow for encryption of the Central Directory.
ANSWER 2
Score 12
You will be prompted for a password when you try to extract the files. To simply view the contents of the archive does not require a password.
If you would like to obfuscate the contents of the archive, compress the directory into an archive, and then compress that archive with a password. Thus, you will have to extract the archive with a password, to pull out the archived (and obfuscated) contents.
ANSWER 3
Score 2
I found your answer in Do encrypted compression containers like ZIP and 7-Zip compress or encrypt first?.
The command line switch to encrypt the headers (i.e. the file names) in 7-Zip is:
-mhe=on
e.g. 7z a -pPassword123 -mhe=on archive.7z file.txt
ANSWER 4
Score 1
You can use GNU Tar to turn the directory into a single file, which you can then compress as a regular file with 7z. Anyone viewing the archive will just see the tar file.