4. A password that protects¶
Apple's zip protects with zip's classic password, which can be broken in minutes. QwikSqueeze uses AES-256.
A zip with AES-256¶
The same zip -e as always. Type the password twice; it isn't shown.
% zip -er tax.zip Tax
Enter password:
Verify password:
zip: creating a zip archive protected by AES-256 with Deflate at level 6: tax.zip
zip: tax.zip was created: 18 files, 4.2 MB squeezed to 845 KB, saving 80%.The zip keeps its .zip name, so it's the file people expect. But not every app can open an AES-256 zip:
Who can open it
Finder's Archive Utility and Apple's unzip can't open AES-256 zips. 7-Zip, Keka, The Unarchiver and QwikSqueeze can. Use QwikSqueeze in the Finder to open AES-256 protected archives.
A 7z, with the names hidden too¶
With squeeze, -e makes a 7z protected by AES-256, and even the names of the files are hidden until the password is given:
% squeeze -e tax Tax
Enter password:
Verify password:
squeeze: balanced chose a 7z archive with LZMA2 at level 1, protected by a password: creating tax.7z
squeeze: tax.7z was created: 18 files, 4.2 MB squeezed to 760 KB, saving 82%.
% unsqueeze tax.7z -d Tax-copy
[tax.7z] password:
Archive: tax.7z
creating: Tax/
extracting: Tax/Statement 2025-08.csv
extracting: Tax/Receipt 01.docx
extracting: Tax/Statement 2025-09.csv
extracting: Tax/Receipt 06.docx
extracting: Tax/Receipt 04.docx
extracting: Tax/Receipt 05.docx
extracting: Tax/Statement 2025-04.csv
extracting: Tax/Statement 2025-10.csv
extracting: Tax/Receipt 02.docx
extracting: Tax/Statement 2025-11.csv
extracting: Tax/Statement 2025-05.csv
extracting: Tax/Statement 2025-07.csv
extracting: Tax/Statement 2025-06.csv
extracting: Tax/Statement 2025-12.csv
extracting: Tax/Statement 2025-02.csv
extracting: Tax/Statement 2025-03.csv
extracting: Tax/Statement 2025-01.csv
extracting: Tax/Receipt 03.docxShort passwords¶
A strong password is at least 20 characters. With a shorter one, squeeze hands the job to Apple's zip, which uses its classic password, and says so:
% zip -er private.zip Website
Enter password:
Verify password:
zip: the password is shorter than 20 characters, so Apple's zip protects private.zip with its classic password, which is weak.
adding: Website/ (stored 0%)
adding: Website/index.html (deflated 61%)
adding: Website/styles.css (deflated 95%)
adding: Website/images/ (stored 0%)
adding: Website/images/cafe.jpg (stored 0%)The length is the setting least-password-length (20 to start). Six random words, such as maple-harbour-lantern-quietly-orbit, are long, strong and easy to type.
Keeping passwords off the command line¶
-P password puts the password where other programs on your Mac can see it, in the list of what's running. Instead:
- type it when asked, as above; or
- keep it in a file only you can read, and use
--read-password file. See 9. Scripts and scheduled jobs.