A CLI tool for decrypting Apple Music songs in conjunction with a wrapper server.
Based on apple-music-alac-downloader.
Must be added to your system's PATH:
- Download the latest binary for your platform from the releases page
- Extract the archive
- Add the binary to your system's PATH
This tool is designed to be called by other programs rather than used directly. For example, gamdl will automatically invoke amdecrypt when needed.
If needed, you can also run it directly from the command line:
amdecrypt <agentIp> <mp4decryptPath> <id> <key> <inputPath> <outputPath>| Argument | Description |
|---|---|
agentIp |
IP address of the wrapper server |
mp4decryptPath |
Path to the mp4decrypt binary |
id |
Track ID |
key |
FairPlay Streaming Key |
inputPath |
Path to the encrypted file |
outputPath |
Path for the decrypted output |
This tool was mostly created with AI assistance.