I recently got GPG setup on my Mac:
brew install gpg; brew install gpg-agent;
And generated a key pair with a passphrase.
use-agent to my
I successfully decrypted a file using:
gpg --use-agent --output example.txt --decrypt example.gpg
which prompted me to enter my private key passphrase. The trouble is, when decrypting subsequent files,
gpg-agent again prompts me for this passphrase.
Currently, my passphrase is a really long string which is near impossible to type each time. I would like
gpg to behave like
ssh-agent wherein the passphrase is stored securely and remembered forever (even between sessions).
I understand that this might decrease security if my laptop was comprised, but this inconvenience would probably deter me from using
gpg all together.
I'm not sure if:
default-cache-ttl 31536000 max-cache-ttl 31536000
are the options I'm looking for to store between reboots There's sadly no
man entry for
How can I make
gpg-agent remember my private key passphrase forever?