Password-protected ZIPs: AES-256, ZipCrypto and what actually protects you
Use AES-256, not ZipCrypto. The file names stay visible either way, and there is no recovery path for a forgotten password.
NoUpload engineering teamLast updated
Key facts
- ZipCrypto uses three 32-bit keys and is vulnerable to a known-plaintext attack; AES-256 ZIPs use PBKDF2-derived keys with authentication.
- ZIP encryption hides file contents, not names, sizes or timestamps.
- The ZIP creator writes AES-256, which 7-Zip and Keka open but older Windows builds may reject as corrupt.
- There is no recovery path: a forgotten archive password cannot be reset or bypassed.
“Password-protected ZIP” describes two formats that share a file extension and almost nothing else. One is a 1989 design with a known-plaintext attack; the other is AES-256. Both open with a password prompt, which is exactly why the difference is easy to miss.
The two schemes
| ZipCrypto (traditional) | AES-256 (WinZip AES) | |
|---|---|---|
| Key | 96-bit, derived from password | 256-bit AES, PBKDF2-derived |
| Integrity check | 1-byte or 2-byte checksum | HMAC-SHA1 authentication |
| Known-plaintext attack | Practical | Not applicable |
| Windows Explorer | Opens | Often refuses |
| 7-Zip, WinRAR, Keka | Opens | Opens |
| macOS Archive Utility | Opens | Inconsistent |
| Filenames encrypted | No | No |
ZipCrypto was designed when export restrictions made strong encryption awkward. It is not “weak” in the sense of “theoretically breakable”; it is weak in the sense that an attacker who has one known file from the archive can recover enough keystream to decrypt other entries. Most tools still offer it because it is the only scheme old Windows versions understand.
AES-256 is the one to choose. The archive’s contents are encrypted with a key derived from the password, and each entry is authenticated so tampering is detectable. The trade-off is compatibility: anything older than roughly 2010, and Windows Explorer itself in many builds, will report the archive as corrupt rather than ask for a password.
Creating one here
In the ZIP creator, add files or folders, turn on the password field, and type a passphrase. The archive is written with AES-256 (zip.js encryption strength 3) and a standard .zip extension.
Two details worth knowing:
- Compression still applies. Encryption wraps the deflated data; it does not replace compression. A ZIP of ten text files is still much smaller than the files themselves.
- The password is used in the tab. It is never sent anywhere, because there is no server. That also means there is no password-reset path, no recovery email and no support override. If you forget it, the data is gone.
The output opens in 7-Zip, WinRAR, Keka, The Unarchiver and most modern archive managers. Test one archive on the machine that will receive it before sending a batch.
What the password does not hide
ZIP encryption protects file contents, not the archive’s structure. Anyone with the file can list:
- Every file name and folder path.
- The uncompressed and compressed size of each entry.
- Modification timestamps.
- The number of files.
If the file names themselves are sensitive — resignation-letter.docx, patient-1043-mri.dcm — a ZIP is the wrong container. Use 7z with header encryption (-mhe=on), or encrypt the archive with a tool that encrypts the whole container. The format comparison covers the trade-offs.
Sending the password
The encryption is only as good as the channel used to send the password. A ZIP attached to an email with the password in the next email is protected against almost nothing.
Better patterns:
- Send the archive by one channel and the password by another (chat vs email, or a phone call).
- Use a password manager’s “share secret” link with an expiry.
- For one-off transfers, a service with end-to-end encryption is often a better fit than an encrypted attachment — the file is large, and email providers scan attachments anyway.
Do not reuse a login password for an archive. A long random passphrase from a password manager is both stronger and easier to paste.
Opening one
Drop the archive into Unzip. If it is encrypted, the tool asks for the password and verifies it against one entry, so a wrong password fails immediately instead of halfway through extraction. The password stays in the tab.
If the archive is AES and your desktop tool says “unsupported” or “corrupt”, the archive is probably fine and the tool is old. Try 7-Zip or Keka before assuming the file is damaged.
When encryption is the wrong tool
- You need to edit the files without extracting. ZIP encryption is all-or-nothing; there is no partial access.
- The recipient cannot install anything. Use a less strict scheme, or send through a service with a web viewer.
- You need to prove who created it. A password proves knowledge of a secret, not identity. That is what signatures are for.
For files that need to be encrypted on their own rather than inside an archive, the file encryption tool uses AES-256-GCM in 64 KB chunks and keeps the original file name inside the encrypted payload. It is not ZIP-compatible, and it says so — the trade-off is a container only this tool can open.
Questions this guide answers
Is AES-256 ZIP better than ZipCrypto?
Yes, substantially. ZipCrypto is vulnerable to a known-plaintext attack and has no real integrity check. AES-256 ZIPs use a 256-bit key derived with PBKDF2 and authenticate each entry, at the cost of compatibility with older Windows tools.
Can I recover a ZIP password?
Not through this tool, and not through any legitimate service without guessing. The password is used in the tab and never stored. If it is lost, the practical options are remembering it, finding it in a password manager, or abandoning the archive.
Are file names hidden inside an encrypted ZIP?
No. ZIP encrypts entry data, not the central directory, so names, paths, sizes and modification times remain visible to anyone with the file. Use 7z with header encryption if the names themselves are sensitive.