This repository is a tool to decrypt Apple FairPlay-encrypted iOS apps (IPAs). It contains an IPA decryptor supporting version-3 and version-5 SUPF records and a credential-retrieval component that extracts a 16-byte FairPlay account credential from a jailbroken iOS device over USB SSH.
  • C 86.6%
  • Python 12.3%
  • Makefile 1.1%
Find a file
2026-11-08 07:54:02 -08:00
.github/workflows Add Python checks for pushes and pull requests 2026-10-27 04:45:49 -07:00
credential-retrieval Replace Arcade credential capture with FairPlay IOKit observation 2026-11-08 07:54:02 -08:00
.gitignore Simplification (#17) 2026-10-24 14:18:07 -07:00
core.py Handle multiple ARM64 slices (#26) 2026-10-30 13:03:21 -07:00
decrypt.py Handle multiple ARM64 slices (#26) 2026-10-30 13:03:21 -07:00
LICENSE Add GNU GPL v3 license 2026-10-30 11:26:40 -07:00
Makefile Add Python checks for pushes and pull requests 2026-10-27 04:45:49 -07:00
README.md Simplification (#17) 2026-10-24 14:18:07 -07:00
requirements.txt initial 2026-10-19 03:16:22 -07:00

IPA decryptor

Decrypt FairPlay-encrypted apps using a 16-byte credential for the account that owns each IPA. Credential retrieval gets it from a supported jailbroken device and writes credential.bin to the chosen output directory.

Decryption runs on macOS and Linux.

Supports version-3 and version-5 SUPF, 448-byte and 440-byte SINF priv records, and encrypted arm64 Mach-O slices. A 440-byte record must end in eight zero bytes.

Set up

From this directory, with Python 3.9+:

python3 -m venv .venv
. .venv/bin/activate
python -m pip install -r requirements.txt

The decryptor is pure Python. On macOS, make builds the credential-retrieval bundle and requires Xcode and ldid.

Decrypt

python decrypt.py /path/to/encrypted.ipa /path/to/decrypted.ipa \
  --credential /path/to/credential.bin

If --credential is omitted, the tool reads ./credential.bin. The output path must not exist.

The decryptor uses each IPA's SINF and SUPF records to derive page keys, decrypt its encrypted arm64 pages, and clear cryptid.