Skip to content
Mark Nadig edited this page Jan 21, 2015 · 1 revision

Welcome to the dotgpg wiki!

Prompting once for a password

Sometimes you may need to decrypt multiple files and desire to only prompt once. One solution is to use a gpg agent: gpg-agent. Alternatively, shell script can prompt and pass in:

#!/bin/bash
read -s -p "Password" pw
dotgpg cat myfile1.gpg <<< $pw > myfile1.env
dotgpg cat myfile2.gpg <<< $pw > myfile2.yml
Clone this wiki locally