gpg decryption question

Questions about applications and software
Forum rules
Before you post please read how to get help
Post Reply
jaymot
Level 2
Level 2
Posts: 81
Joined: Thu Apr 12, 2018 11:22 pm

gpg decryption question

Post by jaymot » Sat Nov 24, 2018 6:34 am

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?
Mint 19 Tara Cinnamon, Asus Zenbook UX303UB, 12GiB 1.6GHz DDR3 RAM, 1TiB HD, Intel Skylake & GeForce 940M 2GiB GPUs, Intel Core i7 6500U CPU

gm10
Level 19
Level 19
Posts: 9704
Joined: Thu Jun 21, 2018 5:11 pm

Re: gpg decryption question

Post by gm10 » Sat Nov 24, 2018 6:52 am

passwords get cached by default, see ~/.gnupg/gpg-agent.conf

jaymot
Level 2
Level 2
Posts: 81
Joined: Thu Apr 12, 2018 11:22 pm

Re: gpg decryption question

Post by jaymot » Sat Nov 24, 2018 7:36 am

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.
Mint 19 Tara Cinnamon, Asus Zenbook UX303UB, 12GiB 1.6GHz DDR3 RAM, 1TiB HD, Intel Skylake & GeForce 940M 2GiB GPUs, Intel Core i7 6500U CPU

Post Reply

Return to “Software & Applications”