gpg/gpg2 "cli" & multiple recipients...

I didn't start here in the Mageia forum, because this is more of a Linux in general question. But I've had no response from linuxquestions.org, So I thought I'd try asking the smart people who reside here, if they know the answer...
details of that at: http://tinylink.in/4NF1P
The short version is using the CLI interface to gpg and/or gpg2, if I encrypt a file so that it can be decrypted by either one of two gpg keys,
Example:
How do I tell gpg and/or gpg2, on the command line, which key I intend to use, to decrypt the file with?
I sometimes can't remember both pass phrases...
Trial and error showed me that if I fail the passphrase prompt enough times, it will finally ask for the other key's passphrase. But aside from being a real PITA, that could be problematic on some Linux systems. Because some of them use an GUI pop-up passphrase prompt, and not all of those specify in the {pinentry?} prompt, which key it's asking about.
And the additional bonus question is:
If I were to use gpg to encrypt some sensitive data file for several intended recipients. Some of whom might be accessing the data from a keydrive, via pgp on a winblows machine. Would they have any control over which key's passphrase they get prompted for?
details of that at: http://tinylink.in/4NF1P
The short version is using the CLI interface to gpg and/or gpg2, if I encrypt a file so that it can be decrypted by either one of two gpg keys,
Example:
- Code: Select all
JtWdyP -> /home/jtwdyp/tmp
> gpg --output ~/tmp/tst.asc -e -r 0xF8549389 -r 0x6C2163DE ~/tmp/tst.txt
gpg: 0x6C2163DE: skipped: public key already present
JtWdyP -> /home/jtwdyp/tmp
>
How do I tell gpg and/or gpg2, on the command line, which key I intend to use, to decrypt the file with?
I sometimes can't remember both pass phrases...
Trial and error showed me that if I fail the passphrase prompt enough times, it will finally ask for the other key's passphrase. But aside from being a real PITA, that could be problematic on some Linux systems. Because some of them use an GUI pop-up passphrase prompt, and not all of those specify in the {pinentry?} prompt, which key it's asking about.
And the additional bonus question is:
If I were to use gpg to encrypt some sensitive data file for several intended recipients. Some of whom might be accessing the data from a keydrive, via pgp on a winblows machine. Would they have any control over which key's passphrase they get prompted for?