Re: Discrepancies in extracted photo-id images from dumps

2019-01-19 Thread Stefan Claas
On Sat, 19 Jan 2019 19:56:00 +0100, Ingo Klöcker wrote:
> On Samstag, 19. Januar 2019 17:10:38 CET Stefan Claas wrote:
> > Method used with GnuPG:
> > 
> > In gpg.conf i put: photo-viewer "cat > %K.%t"
> > 
> > and then i used this one liner:
> > 
> > for filename in ./*.pgp; do gpg --list-keys --list-options show-photo
> > --keyring "${filename}"; done  
> 
> This will result in at most 1 image per key because your fake photo-viewer 
> overwrites photos for keys containing multiple photo-ids (%K.%t is identical 
> for all photo-ids of a key). Using
> photo-viewer "cat > %K.%U.%t"
> instead should fix this.

Great tip, thanks a lot!

Regards
Stefan

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


Re: Discrepancies in extracted photo-id images from dumps

2019-01-19 Thread Ingo Klöcker
On Samstag, 19. Januar 2019 17:10:38 CET Stefan Claas wrote:
> Method used with GnuPG:
> 
> In gpg.conf i put: photo-viewer "cat > %K.%t"
> 
> and then i used this one liner:
> 
> for filename in ./*.pgp; do gpg --list-keys --list-options show-photo
> --keyring "${filename}"; done

This will result in at most 1 image per key because your fake photo-viewer 
overwrites photos for keys containing multiple photo-ids (%K.%t is identical 
for all photo-ids of a key). Using
photo-viewer "cat > %K.%U.%t"
instead should fix this.

Regards,
Ingo




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


Discrepancies in extracted photo-id images from dumps

2019-01-19 Thread Stefan Claas
Hi all,

while inspired by the replies from dkg and Damien, in the "gpg > addphoto"
thread, i tried to see if i can see how many images for photo-id's are in a
whole key dump and what size the images have.

I tried two methods.

With GnuPG[1]i saved out 32088 jpeg images from all single dump files,
while with method two , were i used jpegextrator[2], i obtained from a
joined dump, done with cat, the following result:

Extracted 86506 JPEG file(s) with 1236388001 bytes from 1 input file(s).

Now i wonder why i have such high discrepancies in the numbers?

I would very much appreciate if someone can explain this to me!

[1]Method used with GnuPG:

In gpg.conf i put: photo-viewer "cat > %K.%t"

and then i used this one liner:

for filename in ./*.pgp; do gpg --list-keys --list-options show-photo --keyring 
"${filename}"; done

[2]https://www.digiater.nl/openvms/decus/vmslt02a/net/jpeg-extractor.html

Regards
Stefan

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


showphoto

2019-01-19 Thread Jerry
Windows 10 Pro version 1809
gpg (GnuPG) 2.2.11
libgcrypt 1.8.4

I am not sure if this is an error on my part of if something else is
wrong. I added a photo to one of my keys. That seemed to work fine.
When i view the key, the image is listed as uid 3, which seems correct.

The screen looks like this:

gpg --edit-key ger...@seibercom.net
gpg (GnuPG) 2.2.11; Copyright (C) 2018 Free Software Foundation, Inc.
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.

Secret key is available.

sec  rsa2048/3873063887DEC564
 created: 2019-01-19  expires: never   usage: SCA
 trust: ultimate  validity: ultimate
ssb  rsa2048/881E39D62E6489CA
 created: 2019-01-19  expires: never   usage: E
[ultimate] (1). Gerard E. Seibert 
[ultimate] (2)  Gerard E. Seibert 
[ultimate] (3)  [jpeg image of size 88074]

gpg> uid 3

sec  rsa2048/3873063887DEC564
 created: 2019-01-19  expires: never   usage: SCA
 trust: ultimate  validity: ultimate
ssb  rsa2048/881E39D62E6489CA
 created: 2019-01-19  expires: never   usage: E
[ultimate] (1). Gerard E. Seibert 
[ultimate] (2)  Gerard E. Seibert 
[ultimate] (3)* [jpeg image of size 88074]

gpg> showphoto
Displaying jpeg photo ID of size 88074 for key 3873063887DEC564 (uid 3)

After a few seconds, an error message pops up on the screen. 

C:\Users\Gerard\AppData\Local\Temp\gpg-62cno9\87DEC564.jpg contains an
invalid path.

I have tried several times with each uid and it always issues an error
message.

I was only experimenting with the idea of adding a photo, but I would
still like to know why it is apparently not working correctly.

-- 
Jerry


pgpEQhnhVNbA4.pgp
Description: OpenPGP digital signature
___
Gnupg-users mailing list
Gnupg-users@gnupg.org
http://lists.gnupg.org/mailman/listinfo/gnupg-users


Re: Changing order of ids in key

2019-01-19 Thread Brad Rogers
On Sat, 19 Jan 2019 08:49:36 -0500
Jerry  wrote:

Hello Jerry,

>Thanks, that is pretty much what I thought too. I am using claws-mail.

CM can be set up to pick a GPG ID based on various criteria.

In Account settings, look at Plugins/GPG, and make your choice there.
Either;
1) default
2) based on email
3) user specified

-- 
 Regards  _
 / )   "The blindingly obvious is
/ _)radnever immediately apparent"
Just coz they do it in the movies, doesn't mean to say that it's cool
Keep It Clean - The Vibrators


pgp1WTSOt78Kl.pgp
Description: OpenPGP digital signature
___
Gnupg-users mailing list
Gnupg-users@gnupg.org
http://lists.gnupg.org/mailman/listinfo/gnupg-users


Re: Changing order of ids in key

2019-01-19 Thread Jerry
On Sat, 19 Jan 2019 14:24:21 +0100, dirk1980ac via Gnupg-users stated:

>Hello Jerry.
>
>Am Samstag, den 19.01.2019, 07:31 -0500 schrieb Jerry:
>> Probably a dumb question, but I thought I would ask regardless.
>> 
>> I created a key pair using my name and email address. I then added a
>> new id to the key with the same name but a different email address.
>> Now, when I send an email, the second id is the one displayed no
>> matter what email address I was using when I sent the message. (I
>> hope that this is making sense).  
>
>Yes, I know what you mean. This behavior depends mostly on the MUA you
>are using. One UID is marked as primary. Some MUAs only display the
>primary UID, some display all and some pick the right one from the
>list.
>
>> Is there any way to switch the position of the ids in the key other
>> than deleting the key and creating a new one? Would I be better off
>> creating two separate keys? I would rather keep things simple if
>> possible. Would creating a sub-key be the way to go? I am sort of
>> lost here.  
>
>You can set the other UID as primary. But you would have the same
>problem, when you send with the other address. You should test it with
>another MUA, what this displays. In my case (evolution), it checks the
>UIDs and gives an 'okay' if one of the addresses matches the sender. If
>I check for the signature key by clicking the symbol for the signature
>details, I see the output of GPG with the primary UID and the other
>UIDs as aliases, the same way, as gpg does on the command line.
>
>Hth,
>Dirk

Thanks, that is pretty much what I thought too. I am using claws-mail.

-- 
Jerry


pgpUKIe4_9Cos.pgp
Description: OpenPGP digital signature
___
Gnupg-users mailing list
Gnupg-users@gnupg.org
http://lists.gnupg.org/mailman/listinfo/gnupg-users


Re: Changing order of ids in key

2019-01-19 Thread dirk1980ac via Gnupg-users
Hello Jerry.

Am Samstag, den 19.01.2019, 07:31 -0500 schrieb Jerry:
> Probably a dumb question, but I thought I would ask regardless.
> 
> I created a key pair using my name and email address. I then added a
> new id to the key with the same name but a different email address.
> Now, when I send an email, the second id is the one displayed no
> matter what email address I was using when I sent the message. (I
> hope that this is making sense).

Yes, I know what you mean. This behavior depends mostly on the MUA you
are using. One UID is marked as primary. Some MUAs only display the
primary UID, some display all and some pick the right one from the
list.

> Is there any way to switch the position of the ids in the key other
> than deleting the key and creating a new one? Would I be better off
> creating two separate keys? I would rather keep things simple if
> possible. Would creating a sub-key be the way to go? I am sort of
> lost here.

You can set the other UID as primary. But you would have the same
problem, when you send with the other address. You should test it with
another MUA, what this displays. In my case (evolution), it checks the
UIDs and gives an 'okay' if one of the addresses matches the sender. If
I check for the signature key by clicking the symbol for the signature
details, I see the output of GPG with the primary UID and the other
UIDs as aliases, the same way, as gpg does on the command line.

Hth,
Dirk

-- 
Dirk Gottschalk
Paulusstrasse 6-8
52064 Aachen, Germany

GPG: DDCB AF8E 0132 AA54 20AB  B864 4081 0B18 1ED8 E838
Keybase.io: https://keybase.io/dgottschalk
GitHub: https://github.com/Dirk1980ac



signature.asc
Description: This is a digitally signed message part
___
Gnupg-users mailing list
Gnupg-users@gnupg.org
http://lists.gnupg.org/mailman/listinfo/gnupg-users


Changing order of ids in key

2019-01-19 Thread Jerry
Probably a dumb question, but I thought I would ask regardless.

I created a key pair using my name and email address. I then added a
new id to the key with the same name but a different email address.
Now, when I send an email, the second id is the one displayed no matter
what email address I was using when I sent the message. (I hope that
this is making sense).

Is there any way to switch the position of the ids in the key other
than deleting the key and creating a new one? Would I be better off
creating two separate keys? I would rather keep things simple if
possible. Would creating a sub-key be the way to go? I am sort of lost
here.

Thanks!

-- 
Jerry


pgp7Eu8m2RUQV.pgp
Description: OpenPGP digital signature
___
Gnupg-users mailing list
Gnupg-users@gnupg.org
http://lists.gnupg.org/mailman/listinfo/gnupg-users