What is an .aea file, and how do you open it on a Mac?
An .aea file is an Apple Encrypted Archive: Apple’s own archive format,
Apple Archive (.aar), wrapped so it can be encrypted, signed, or both.
macOS can make and open both from the command line, but Finder’s Compress
command only makes ZIPs.
Is this an Xcode download?
Starting with Xcode 27.3, Apple offers Xcode as an .aea. That kind is signed
by Apple but not encrypted, so there’s no password or key to find. Install it
with the archiveutil extractXcodeAEA command that comes with macOS: see
How to install Xcode from an .aea file.
How to open an .aea file
For a password-protected .aea, if you were given the password, either of
these works:
Purrchiver (free): open the
.aea, enter the password, and browse or extract its contents. Opening encrypted archives is free; creating them is part of the unlock.Terminal: macOS includes Apple’s
aeaandaatools. Decrypt to an Apple Archive, then extract it into a folder:read -s "P?Password: " aea decrypt -password-value "$P" -i file.aea -o file.aar mkdir file && aa extract -d file -i file.aarThe
read -sline asks for the password without showing it, which keeps it out of your shell history.
Got a .dmg.aea from an Apple firmware file? It doesn’t take a password.
See .dmg.aea files from Apple below.
On May 27 Purrchiver started creating and opening password-protected .aea
files. The rest of this post is how that works.
Built on Apple’s own framework
Purrchiver doesn’t reimplement the format. It uses Apple’s AppleArchive
framework — the same code behind Apple’s own command-line tools — so an .aea
that Purrchiver makes opens with Apple’s tools, and the other way round.
In Purrchiver, encryption is a choice you make for an archive rather than a
separate format: choose Apple Archive and turn on encryption, and the file you
get is .aea instead of .aar.
How long the password must be
The surprising part is the password. Apple sets a minimum length for .aea
passwords and doesn’t document it. On macOS 14.8.9, 15.8.2, 26.6.2 and
27.2, Apple’s aa command accepts 20 to 256 bytes; 19 characters fails with
“Password is too short”. A 20-character .aea made on 27.2 opened on each of
the others.
Purrchiver asks for the same 20 to 256 characters, ASCII only, and opens
any .aea whose password Apple’s tools accept.
When Purrchiver added .aea in May 2026, I recorded Apple’s minimum as 32
characters, and Purrchiver asked for 32 until version 1.1.1. That was
wrong: nobody had tested it. Testing lengths from 8 to 257 on four versions of
macOS, including 19, 20, 256 and 257, found the real limits.
Purrchiver could have quietly stretched a short password into a long one behind the scenes. It doesn’t, because then an archive Purrchiver made could only be opened by Purrchiver. A passphrase of four or five random words gets past the minimum easily.
.dmg.aea files from Apple
A .dmg.aea file is a disk image that Apple encrypted as an Apple Encrypted
Archive. You’ll find them inside iPhone and Mac firmware files (.ipsw). In
the iOS 27.2 IPSW for one iPhone, the four largest disk images were .dmg.aea
and the three smaller ones were plain .dmg. The macOS 27.2 IPSW had five
.dmg.aea and four plain .dmg.
There’s no password to find. These files are encrypted with a key, not a
password. The key travels inside the file in wrapped form, along with the
address on Apple’s server (wkms-public.apple.com) of the key that unwraps it,
which Apple gives out to anyone, no sign-in needed. Until it’s decrypted, macOS
doesn’t recognize the file as a disk image, Apple’s aea command refuses to
run without a key, and Purrchiver can’t open it: it only opens .aea files
locked with a password.
The free, open-source ipsw tool decrypts
them. It comes with the keys Apple has published built in, and can fetch a
newer one from Apple’s server. I tested these steps on macOS 27.2 with ipsw
3.1.743 and a 256 MB .dmg.aea from an iOS 27.2 IPSW.
Install
ipswwith Homebrew:brew install ipswDecrypt it into a folder on your Desktop. Type the first line and the start of the second, then drag the
.dmg.aeainto the Terminal window to fill in its path, and type the rest:mkdir -p ~/Desktop/decrypted ipsw fw aea /path/to/file.dmg.aea --output ~/Desktop/decryptedDouble-click the
.dmgin thedecryptedfolder. It opens like any other disk image: the one I tested held the iPhone’s recovery system, read-only. Eject it in Finder when you’re done.
If you’d rather decrypt with Apple’s own tool, ipsw can just print the key,
and the aea command that comes with macOS does the rest. Both ways gave
byte-for-byte the same .dmg:
KEY=$(ipsw fw aea --key /path/to/file.dmg.aea)
aea decrypt -i /path/to/file.dmg.aea -o ~/Desktop/file.dmg -key-value "$KEY"A wrong key fails with “Failed to unlock container” and leaves an empty
file.dmg behind; delete it.
When to use it
.aea is an Apple-platforms format. It’s a good fit when everyone involved is
on a Mac and you want an encrypted archive built entirely on Apple’s own
cryptography. If you’re sending something to a Windows or Linux machine, an
AES-256 ZIP or 7z — or age — will travel better.
The encrypted archives help page compares the options.