Generate secure, memorable XKCD-style passphrases directly from Alfred.
Inspired by correcthorsebatterystaple.net.
- Alfred 5 with a Powerpack licence
- macOS (uses the built-in
/usr/share/dict/wordswordlist — no extra dependencies)
- Download PassPhrase-Generator.alfredworkflow
- Double-click it — Alfred will import it automatically
- Configure your defaults in the User Configuration panel (see below)
| Input | Result |
|---|---|
pp |
Generates 9 passphrases using your saved defaults |
pp 6 |
Generates passphrases with 6 words (one-off override) |
↩ |
Copies the selected passphrase to the clipboard |
⌘↩ |
Pastes the selected passphrase into the frontmost app |
Open Alfred Preferences → Workflows → PassPhrase Generator and click [x] (User Configuration) to set your defaults:
| Setting | Default | Description |
|---|---|---|
| Keyword | pp |
Alfred keyword that triggers the generator |
| Minimum Words | 4 |
Fewest words per passphrase (slider, 2–10) |
| Minimum Length | 20 |
Fewest total characters; extra words are added until met |
| Separator | - |
Character placed between words (e.g. -, ., _, or leave blank) |
| Capitalise first letter | ✅ | Title-cases the first letter of each word |
| Include a number | ☐ | Appends a random 2-digit number after the last word |
- Uses Python's
secretsmodule (secrets.SystemRandom) for cryptographically secure random selection — not the weakerrandommodule. - Words are drawn from macOS's built-in system dictionary, filtered to clean alphabetical words of 4–8 characters. No network requests are made.
- No data is logged or transmitted.