li...@mgreg.com <6c0bda71-fd0a-4c30-ae59-50d5fb8e4...@mgreg.com> wrote
on 5/11/11 10:49:04 PM:
> Hi All,
> 
> I am writing application in which I need to know if a GnuPG encrypted message 
> was sent to me.  It seems that whenever you list the recipients of a message 
> it will list every recipient but you -- even if you're one of them.  Surely 
> there's a way to reveal whether or not you're one of those recipients...?
> 
> Regards,
> 
> Michael

You can try this, but I don't know how to integrate it into your
application:

- launch Terminal and type gpg. This will output:
gpg: Go ahead and type your message ...

- copy/page the encrypted message. If it was encrypted to your public
key, your will be prompted to enter your passphrase. After you enter it,
the output will display to which user IDs and public keys the message
was encrypted, like:
---------
You need a passphrase to unlock the secret key for
user: "Charly Avital <shavi...@mac.com>"
4096-bit RSA key, ID 02345678, created 2011-03-26 (main key ID ABCDEF1)

[and after you type in the passphrase]:

gpg: encrypted with [the second recipient's key]
      [the second recipient's user ID]
gpg: encrypted with 4096-bit RSA key, ID 02345678, created 2011-03-26
      "Charly Avital <shavi...@mac.com>"
--------

Charly



_______________________________________________
Gnupg-users mailing list
Gnupg-users@gnupg.org
http://lists.gnupg.org/mailman/listinfo/gnupg-users

Reply via email to