Effortless non-interactive decryption with age
Warning
This project is deprecated. age now natively supports non-interactive password input via the age-plugin-batchpass plugin. Use that instead.
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.
First, make sure you have expect installed:
# Debian/Ubuntu
sudo apt install expect
# Arch Linux
sudo pacman -S expect
# Fedora
sudo dnf install expect
# macOS
brew install expectNext, add expect-age to your PATH and make it executable. Now you can decrypt files non-interactively:
expect-age "your-password" "/path/to/your/encrypted_file.age" "/path/to/your/output_file.txt"Automate your workflows with ease ⏩!