Skip to content
EasyToPaste

Is a Password-Protected ZIP File Encrypted? Yes — But Not All of It

A ZIP password does encrypt the file contents. It usually does not hide the filenames, and it may use a scheme broken in the 1990s. How to check which one you have.

EasyToPaste Team Published 5 min read
  • zip files
  • encryption
  • explainer

קרא בעברית

“Password-protected” and “encrypted” get used as if they were the same thing. For ZIP files they almost are — but the gap between them is where the surprises live.

The short answer: yes, the contents are encrypted. No, the filenames usually are not. And the strength depends on which of two very different schemes your archiver picked, which the phrase “password-protected” does not tell you.

What the password encrypts

A ZIP file is two things glued together: the compressed data for each file, and a central directory that indexes them — names, sizes, timestamps, offsets. When you set a password, the archiver encrypts the first part. The directory stays readable, because the format needs it to find entries inside the archive.

The practical consequence is blunt. Hand someone an encrypted archive they cannot open, and they can still list what is in it. Passport_scan.pdf, Settlement_final.docx, Payroll_Nov_2026.xlsx — all legible without the password. For plenty of hand-offs that does not matter. For some, the filename is the sensitive part.

Some other archive formats can encrypt the header as well. ZIP, in the form the common tools produce, does not.

The two kinds of ZIP encryption

ZipCrypto (legacy, weak)

This is the scheme from the original PKZIP. It is still the default in some tools and still offered in most, usually for compatibility with very old software.

It should be treated as broken. Biham and Kocher published a known-plaintext attack against it in 1994, and implementations are freely available today. The attack needs about a dozen contiguous bytes of known plaintext — and the precise requirement is the part most summaries get wrong: it needs those bytes of the compressed stream, not of the original file. So file magic such as a PDF’s %PDF- does not hand it to an attacker by itself.

Where it does get handed over: entries stored without compression, archives containing a file the attacker already has a copy of (a standard template, a logo, a form, a licence text), or archives where one entry can be reconstructed from a public source. None of that is exotic, and when it applies the password’s strength stops mattering at all. That is the part people miss: against ZipCrypto, a long random password does not necessarily save you.

There is also a second, simpler reason not to use it: its key derivation is weak by modern standards, so brute-forcing the password itself is far cheaper than against AES.

AES (modern, strong)

Modern archivers can encrypt ZIP entries with AES, normally AES-256, in the form WinZip specified as AE-2. The cipher itself is the same primitive that protects most of the rest of the internet, and there is no practical attack on it.

The trade-off is support. AES-encrypted ZIPs need software that understands them. 7-Zip, WinZip, WinRAR and Keka all do. Some built-in operating-system archive handlers do not, or handle them badly — which is how a recipient ends up reporting that the file “is corrupted” when it is simply unsupported.

If what you want is the two schemes set against each other rather than described one after the other, ZipCrypto vs AES-256, and both against a one-time link is the side-by-side.

How to check which one you have

Before you create the archive, open the encryption settings rather than accepting a default. If you are starting from “can I password-protect a ZIP folder at all?”, that walkthrough covers Windows and macOS from the beginning; the settings to look for are these:

  • 7-Zip: in the Add to Archive dialog, the Encryption box has an Encryption method dropdown offering ZipCrypto and AES-256. Pick AES-256.
  • WinZip: the encryption options offer legacy Zip 2.0 and AES; pick 256-bit AES.
  • WinRAR, saving as ZIP: current versions use AES-256 for ZIP encryption; saving as RAR instead uses RAR’s own AES.
  • The command-line zip -e: that flag uses the legacy scheme. Do not use it for anything that matters.

For an archive you already have, 7-Zip’s info panel lists the method for each entry. If you have no way to check, assume ZipCrypto and act accordingly.

What encryption does not fix

Even with AES-256 chosen correctly, three failures have nothing to do with the cipher:

  1. The password is the lock. An attacker with the archive guesses offline, as fast as their hardware allows, with no lockout and no alarm. Use a long random passphrase from a password manager, not a word you can recall.
  2. The password usually travels with the file. Sending the archive and the password in the same thread hands over both halves at once. This is the single most common way an encrypted ZIP fails.
  3. The copies outlive the need. The attachment sits in your sent folder, the recipient’s inbox, both sets of backups and a downloads folder, indefinitely. Encryption has no opinion on how long a copy exists, and you cannot revoke an attachment after sending it.

All six of the practical failure modes are in are password-protected ZIP files secure?

When the question is really “how do I send this safely”

If the archive exists only so you can attach it to an email, the ZIP is solving the wrong problem. An encrypted one-time link covers the same job with properties a ZIP cannot have: the key is generated on your device and lives in the part of the link after the #, which browsers never send to a server, so the service stores ciphertext it cannot decrypt — and the record is deleted on read or expiry, while the uploaded file’s encrypted object is cleared by a storage lifecycle rule about 38 days after it was created. The details are on How It Works and Security.

Next: how to send a ZIP file securely, and the side-by-side in AES-256 ZIP vs a one-time link.

The short version

  • Yes, a ZIP password encrypts the contents.
  • No, it does not normally encrypt the filenames.
  • There are two schemes. ZipCrypto is broken; AES-256 is not. Check which.
  • Against ZipCrypto, password strength does not help.
  • Against AES, password strength is the whole game — and so is the channel you send it over.

Common questions

Is a password-protected ZIP file encrypted?
Yes. When you set a password, the archiver encrypts the contents of the files inside. What it normally does not encrypt is the central directory — the list of filenames, sizes and timestamps — so anyone holding the archive can read what is in it without the password.
Which encryption does a ZIP file use?
One of two. Legacy ZipCrypto, the original scheme, is weak and has a public known-plaintext attack. AES, usually AES-256 in the WinZip AE-2 form, is strong. Which one you get depends entirely on the setting your archiver used, and the phrase password-protected does not distinguish them.
How can I check whether my ZIP uses AES or ZipCrypto?
Look at the archiver's encryption setting before you create the archive — 7-Zip, WinZip and WinRAR all expose it, and 7-Zip names the choice ZipCrypto versus AES-256. For an existing archive, 7-Zip's info panel reports the method per entry. If you cannot confirm it, treat the archive as the weak kind.
Does encryption hide the names of the files inside a ZIP?
Not in the standard ZIP format as commonly produced. The filenames stay in cleartext in the archive's directory. If the names themselves are sensitive — a passport scan, a salary sheet, a medical report — rename the files to something neutral before archiving, or use a method that encrypts the directory too.
Is AES-256 ZIP encryption enough for sensitive documents?
The cipher is not the weak part. AES-256 is strong; the password and the way it reaches the recipient are what usually fail, along with the long-lived copies an email attachment leaves in two mailboxes. AES-256 makes a ZIP as good as ZIP gets, which is still a format with no expiry, no revocation and no delivery signal.

All articles