Create Encrypted ZIP
Operator: Abdulla Al Fahad. How tools are built and checked
Emailing a contract or a set of payslips is only as private as the file you attach. A ZIP locked with AES-256 stays unreadable to anyone who intercepts it, but only if the encryption is the real thing and the archive opens at the other end.
Key features
- AES-256 in the WinZip AE-2 layout, with ZipCrypto available as a clearly marked legacy option
- Files or a whole folder, keeping the folder structure, with a list where any entry can be removed
- A password generator (8 to 64 characters, four character sets, no look-alike characters) and a strength meter that shows an estimate in bits
- Compression level 0 to 9 and an optional ZIP comment of up to 65,535 bytes
- A check that opens the finished archive with the password and compares every entry's size and CRC-32 with its source before the download is offered
AES-256 ZIP against ZipCrypto, and who can open each
In a WinZip AES archive each file is stored with compression method 99 and an extra field naming the real method, the AES strength and the vendor version. This page writes version AE-2 with strength 3, which is AES-256.
AE-2 stores no CRC-32 of the plain data, because the entry carries a 10-byte authentication code from HMAC-SHA1 instead, so a reader detects a wrong password or damage through that code.
The check on this page therefore does two things: the library verifies the authentication code while decrypting, and the page computes the CRC-32 of each source file beforehand and of each decrypted entry afterwards, and compares them along with the sizes.
File names inside the archive are stored with the Unicode flag and cleaned like any archive path: backslashes become slashes, '..' and drive letters are dropped, and a case-insensitive clash gets a ' (2)' suffix. Names and sizes are not encrypted in a ZIP, so anyone can see the file list without the password.
How it works
Each file is read from disk in slices, encrypted and compressed as a stream, and written to the archive. In Chromium the page asks where to save and streams straight to that file, so the size is limited by your disk and Zip64 records are used automatically above 4 GB. Other browsers build the ZIP in memory, which the page limits to 1.5 GB of input.
Verification re-opens the finished file, finds each entry by name, checks that it is flagged encrypted, and streams it through the CRC while decrypting, so memory use stays flat on large entries.
Common use cases
- An accountant zips 12 client PDFs under a generated 24-character password and sends the password by phone while the ZIP goes by email.
- A landlord packs a folder of tenancy scans with its sub-folders intact, 410 files, and saves straight to disk instead of building it in memory.
How to use this tool
- Add files, or add a folder to keep its structure; remove any row you do not want.
- Type the password twice, or press Generate and use, then Copy password to keep it for the recipient.
- Leave Encryption on AES-256 unless the recipient's tool cannot read it, and optionally set the level and a comment.
- Press Create and download (or Choose where to save and create) and wait for the green confirmation with the entry count.
Example
Two illustrative files, a contract PDF and a scanned ID, with the comment 'Contracts batch 7'
Password Tr0ub4dor&3-horse (an example, not one to use), AES-256, level 6, then Create and downloadResult
archive-protected.zip with both entries stored under compression method 99 (AES). The file names, sizes and the comment can be read without the password, the contents cannot. The page reports that all 2 entries matched their source files in size and CRC-32.Tips for best results
- Give the recipient the app names with the password: 7-Zip on Windows, Keka or The Unarchiver on a Mac, or WinZip. Windows Explorer and the macOS Archive Utility open ZIPs without a password but report an error on AES ones.
- Files that are already compressed, such as JPEG photos, MP4 video or other ZIPs, gain nothing from compression; set the level to 0 so they are stored and the job finishes sooner.
- A comment is shown by some tools without the password, so use it for a label, never for hints.
Common pitfalls
ZipCrypto, the older scheme every operating system can open, can be broken with a known-plaintext attack when an attacker knows a few bytes of a file. The page warns and expects an ASCII password for it.
File names, sizes and dates stay visible without the password. If the names themselves are sensitive, rename the files before zipping.
Common errors and how to fix them
- "The two passwords do not match."
- The repeat field differs from the first, often by a trailing space or a keyboard layout change. Retype both, or use Generate and use, which fills both fields.
- "The archive did not pass its check"
- A decrypted entry differed from its source or could not be decrypted. Nothing is offered for download in the in-memory path; with a saved file, delete it and run the job again. If it fails twice, try fewer files, because a disk or memory fault is then the likely cause.
- "This browser cannot stream a ZIP to disk, and 2.1 GB is more than the 1.5 GB it can hold in memory."
- Use a Chromium-based browser, which can save straight to a file, or split the files into two ZIPs.
Best practices
- Tell the recipient in the message that the ZIP uses AES, because a double-click in Windows Explorer will fail on it and they will otherwise assume the file is damaged.
- Open the result once with the tool your recipient uses before you send the real thing.
Frequently asked questions
Why does ZipCrypto want an ASCII password?
The old scheme turns the password into bytes with no declared character set, so a password with accents or other non-ASCII characters can be read differently by the tool that opens the ZIP. Stay with letters, digits and common symbols for ZipCrypto; AES is not affected.
Can a ZIP created here be opened by 7-Zip, WinZip and Keka?
AE-2 is the format WinZip introduced, and 7-Zip, Keka and The Unarchiver read it. Open the finished ZIP once in the tool your recipient will use if you want to be certain.
Can I put a password on a ZIP I already have?
Not directly. Add its contents here again after unpacking it with the ZIP Extractor, because encryption is applied per file when the archive is written.