https://github.com/dynamotn/expect-age
Decrypt age encrypted files with passphrase from scripts/CLI
https://github.com/dynamotn/expect-age
Last synced: 4 months ago
JSON representation
Decrypt age encrypted files with passphrase from scripts/CLI
- Host: GitHub
- URL: https://github.com/dynamotn/expect-age
- Owner: dynamotn
- License: bsd-2-clause
- Created: 2025-08-05T09:07:49.000Z (11 months ago)
- Default Branch: main
- Last Pushed: 2025-08-05T10:38:13.000Z (11 months ago)
- Last Synced: 2025-08-05T12:32:00.343Z (11 months ago)
- Size: 3.91 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# expect-age
> Effortless non-interactive decryption with age
---
## ❓ Why
[age](https://github.com/FiloSottile/age) is a modern encryption tool, but it doesn’t natively support non-interactive password input. **expect-age** bridges this gap, letting you decrypt age-encrypted files automatically—perfect for scripts and automation.
Curious why this is needed? See the discussion [here](https://github.com/FiloSottile/age/discussions/256).
## 🚀 Quick start
First, make sure you have `expect` installed:
```bash
# Debian/Ubuntu
sudo apt install expect
# Arch Linux
sudo pacman -S expect
# Fedora
sudo dnf install expect
# macOS
brew install expect
```
Next, add `expect-age` to your `PATH` and make it executable. Now you can decrypt files non-interactively:
```bash
expect-age "your-password" "/path/to/your/encrypted_file.age" "/path/to/your/output_file.txt"
```
Automate your workflows with ease ⏩!