Page 1 of 1

gpg decryption question

Posted: Sat Nov 24, 2018 6:34 am
by jaymot
I encrypted a text file using

Code: Select all

gpg -c filename.txt
and it prompted me to enter a passphrase twice, as I expected. I then decrypted the file with

Code: Select all

gpg -d filename.txt.gpg
expecting to be prompted for the passphrase but instead it just decrypted the file. This has me concerned that anyone might be able to decrypt it without knowing the passphrase, which would defeat the purpose of encrypting it in the first place.

Is gpg storing my passphrases somewhere and automatically using them, or what? Is this normal behavior?

Re: gpg decryption question

Posted: Sat Nov 24, 2018 6:52 am
by gm10
passwords get cached by default, see ~/.gnupg/gpg-agent.conf

Re: gpg decryption question

Posted: Sat Nov 24, 2018 7:36 am
by jaymot
OK, thanks. I don't seem to have such a file as gpg-agent.conf though. At least, a catfish search isn't finding it.