gpg offering to encrypt to an unwanted key

Philip Jackson philip.jackson at nordnet.fr
Sun Oct 5 23:41:23 CEST 2014


On 05/10/14 21:18, Peter Lebbing wrote:
> On 05/10/14 20:44, Philip Jackson wrote:
>>> desktop:~$ gpg2 -encrypt filename.txt
> 
> Remember that a single dash introduces *short* options, so each letter is an
> option. I think this becomes:
> 
> $ gpg2 --encrypt --dry-run --symmetric --recipient ypt filename.txt
> 
> As you see, you've specified the recipient "ypt" because the short option -r
> takes an argument, making the rest of the string the argument. The key you mention
> 
>>> pub  4077g/0xDCEA1B7C6B136ECF 2004-06-06 TrueCrypt Foundation <contact at truecrypt.org>
> 
> has the string "ypt" in its name.
> 
>> (pinentry asked my password, then second confirmation entry)
> 
> Actually, pinentry asks for the password for --symmetric. The fact that it asks
> for confirmation indicates that it is prompting you for a new password, rather
> than existing one, which it would only prompt again if you got it wrong.
> 

Thank you for the explanation, Peter.  It all sounds rather logical.

Philip



-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 455 bytes
Desc: OpenPGP digital signature
URL: </pipermail/attachments/20141005/326463d8/attachment.sig>


More information about the Gnupg-users mailing list