Skip to main content
coreydaley.dev

Forgot the password to a ZIP, RAR, 7z, or DMG on a Mac

You have a password-protected ZIP, RAR, 7z, or disk image, and the password is gone. The honest answer first: if the archive uses modern encryption (AES) and the password isn’t somewhere you can find, no app can open it, Purrchiver included. So start by looking for the password, because it’s often still around.

Where the password usually still is

  • The message it came with. Search your email, Messages, or chat app for the file’s name or “password”. Senders often put it in a separate message.
  • Your Mac’s keychain. When you open an encrypted disk image and tick “Remember password in my keychain”, macOS saves the password as a “disk image password”. Search for the disk image’s name in Keychain Access (find it with Spotlight).
  • Your password manager, if you made the archive yourself. Search for the file or project name.
  • The person who sent it. Asking is faster than anything below.

Why there’s no way around it

Modern archive encryption (AES, usually 256-bit, used by encrypted 7z, RAR, disk images, and AES ZIPs) turns the password into the key that scrambles the data. There’s no master key and no back door, and the archive doesn’t store the password anywhere, so there’s nothing for an app to look up or switch off. Purrchiver, 7-Zip, WinRAR, and Apple can’t open it without the password either.

For 7z and RAR archives with encrypted file names, even the list of files inside is hidden until the right password is entered.

Password-recovery tools: what they can do

For an archive you own, there are tools that try passwords for you, very quickly: John the Ripper and hashcat are the best-known free ones. They don’t break the encryption; they guess, using lists of common passwords and variations on words you suggest.

That works when the password was short or common, or when you remember most of it (“it was my dog’s name and a year”). A long, random password won’t be found in any useful amount of time.

The one exception is old ZipCrypto ZIPs (the weak, original ZIP encryption). If you also have an unencrypted copy of one of the files inside, a tool called bkcrack can often recover the keys and open the rest, whatever the password was. (It needs that file’s data exactly as it was stored in the ZIP, which can take some work to reproduce.)

Myths and risks

  • The “Notepad trick” (opening a RAR in a text editor and changing a few characters to remove the password) doesn’t work. At best it damages the file.
  • “Online password recovery” sites mean uploading your private file to a stranger, often to be told to pay before you see anything. Don’t.
  • “Remove the password” apps for AES-encrypted archives can only guess, the same as the free tools above.

Next time

When you make an encrypted archive, save the password in your password manager or the Passwords app straight away, and send it to the other person separately from the file. Purrchiver encrypts with AES-256 and never stores passwords. See Encrypted archives and How to password-protect a ZIP file.

Download on the Mac App Store

Free forever to open and extract anything. $9.99 once for the advanced tools. No trial, no subscription.