🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: alt.privacy.anon-server
6 messages
6 total messages Started by SEC3 Mon, 13 May 2019 01:16
GnuPG keyring conversion
#304672
Author: SEC3
Date: Mon, 13 May 2019 01:16
10 lines
1261 bytes
Does anyone have a script or maybe some commandline fu that will export
public and private keys from a GnuPG 2.x installation and place them
into GnuPG 1.x keyring format, i.e. pubring.gpg and secring.gpg?


-- 
SEC3
Contact information at <https://sec3.net>
I am also on Keybase <https://keybase.io/sec3>
Re: GnuPG keyring conversion
#304677
Author: Stefan Claas
Date: Mon, 13 May 2019 14:12
22 lines
1521 bytes
Am Sun, 12 May 2019 21:16:21 -0400
schrieb SEC3 <noreply@sec3.net>:

> Does anyone have a script or maybe some commandline fu that will
> export public and private keys from a GnuPG 2.x installation and
> place them into GnuPG 1.x keyring format, i.e. pubring.gpg and
> secring.gpg?

Hi sec3,

if I remember correctly (I use box nowadays for encrypted
communications) you simply can do that by exporting the
whole key block, instead of a single key. Simply omit
the UID which you like to export usually and then it
should export the whole key block. 

This assumes of course that you don't have ECC keys in
your key ring, which IIRC 1.4 can't use.

Regards
Stefan
Re: GnuPG keyring conversion
#304676
Author: SEC3
Date: Mon, 13 May 2019 14:51
34 lines
2108 bytes
On 5/13/19 10:12 AM, Stefan Claas wrote:
> Am Sun, 12 May 2019 21:16:21 -0400
> schrieb SEC3 <noreply@sec3.net>:
> 
>> Does anyone have a script or maybe some commandline fu that will
>> export public and private keys from a GnuPG 2.x installation and
>> place them into GnuPG 1.x keyring format, i.e. pubring.gpg and
>> secring.gpg?
> 
> Hi sec3,
> 
> if I remember correctly (I use box nowadays for encrypted
> communications) you simply can do that by exporting the
> whole key block, instead of a single key. Simply omit
> the UID which you like to export usually and then it
> should export the whole key block. 
> 
> This assumes of course that you don't have ECC keys in
> your key ring, which IIRC 1.4 can't use.


Thanks. It's a little more complicated than a simple --export. This may
work for the pubring and the trust db but certainly not for the secring
for which GnuPG v2 has changed the format dramatically.

I'll keep googling.

You mentioned that  you use "box" instead of PGP. What is that?


-- 
SEC3
Contact information at <https://sec3.net>
I am also on Keybase <https://keybase.io/sec3>
Re: GnuPG keyring conversion
#304679
Author: Stefan Claas
Date: Mon, 13 May 2019 16:24
46 lines
2362 bytes
Am Mon, 13 May 2019 10:51:46 -0400
schrieb SEC3 <noreply@sec3.net>:
 
> I'll keep googling.

O.k.

> You mentioned that  you use "box" instead of PGP. What is that?

Box is a little encryption utility written in Golang too ...
and I choose it because it is modern and does not have the
bloat GnuPG has. I assume that the program author has done
it right, so that there are no flaws in the encryption routines.

What I like about box is that when importing those little
NaCl pub keys I can give a pub key a name like Bob, or Alice
and the keys has no information about it's owner and you
don't need a passphrase for unlocking the secret key, when
using box, because it does not use a passphrase.

The pub key fits on a business card and for ASCII amor I
use a base91 encoder/decoder, also written in Golang.

You can run box and it's key ring from a USB stick.

The good thing is IMHO that you can explain box and base91
usage to family, friends etc. without assuming that they
have a clue about encryption software, because box is
so easy to use in cli mode and it has only five commands!

If you like to check out box (and base91) I have the files
on my keybase page, including the Golang source code.

The original link for box, on github, is:

https://github.com/rovaughn/box

The base91 encoder/decoder, also written in Golang is
also from github, but I don't have the link currently
not handy.

Regards
Stefan


Re: GnuPG keyring conversion
#304692
Author: Stefan Claas
Date: Tue, 14 May 2019 10:36
58 lines
3036 bytes
Am Mon, 13 May 2019 18:24:47 +0200
schrieb Stefan Claas <sac@300baud.de>:

> The pub key fits on a business card and for ASCII amor I
> use a base91 encoder/decoder, also written in Golang.

For the interested reader ...

I have encrypted the following message with box and GnuPG.
Since box uses authentication, without using a --sign
command I had also signed my GnuPG message for comparison.

Here is my box pub key:

ebc34e0f03505f01aaed19231ec58ceb4388c026584362812ee4e1c03308d436

And here are both messages. The first one is box encrypted and base91
encoded.

CAAA)Uc0BAC"d@+G>7/F~%#zNs%DDQ{E@QbNYO`"rsU#nYu+iP{HdEGFe<~D.fYK.OVB:*Wa!G?E
[?rpKK`r7,7#1))R.KFjI:hy,&xP.2qK_@0l@LpL8Qu%;[$^X);dftz,()/e

Now the same message, GnuPG signed and encrypted with my pub key:

-----BEGIN PGP MESSAGE-----

hQGMA1Bqfq0bAcQ0AQwAiQk2U7izpJ+3e5+4/6J9YDXccd0Bpsm8jcIXfi1EKF4l
a0dSukbVbG9+6QVFYKggBmA6/2d8Y9UwKM/wE32hnHrQ9X6Q9XHMBClVgIuBOfFc
N2jXCgZuFZYoZkXtlLmkAD1cc7kiv02aKftkTNZP6NmhyjgYslBTdM/jO/Vyx2ys
WzTHGZSK+D0vj6CjMlI5cF63g7mu/isTnfSNbfhBw3gTM9m+f5cDlj0qwarC6pc5
InKq9eaFdjdkS5wfiMf1nZngcTTzTSsD4AQGlvdSROQ8OrIPtupl25iA96PawqFb
usYRHHIrlMl8P9g1tEZzGyFjsnNeT4cokBs+iZVVqyviNdF4plIm0hUm1S0X58H+
DbGWoKEA3qUptSbg+NncPohXo1Vg5nHAZ0NGWGNSscdLNrfserag+ZcVkWS8/K5P
fqRjRpmeml+Um8boLA3HQm2XoXB+0HzCSb8E4HVIJCBYfe54QihSlexBLzJI72OP
fHt+aCucEUTcIobRxu8C0sA4AYqnFmC79ddJC3QtwnMvtG0cO3NZzq5IT7lJg7/A
NacRjMfEJO4T4jcM1dxD4Gti6s3OZVqND3zV8EsGjEXkqBELzWJrYHzpH45eFyG3
Y+Vu+qUELgvnoKmmF/SFToHyBeZR5b5oIH7uhrRvxTAUM8P5X7Pl0EHeEkW9wQZm
GwC8MPysYv6YVyQvHHXbdif8y3i5YpHVQE1eDgBOW8CZbcYEVeK01FCJDp1+DdmY
R1k+MMqiza0d6IqXVgm4FR43WgChAWBkl9peO67lav9qCnjV1l7/0cGKvh9SBhtk
Bej23z8tdhI5c+XrkrQRpme1IEJUAan7BL0=
=Xo4P
-----END PGP MESSAGE-----

Neat, eh? :-)

O.k. for the apa-s community the disadvantage with box may be
that you can't create a Nym account and you can't sign a posting,
but for mysef I usually no longer sign postings, because when
doing so in German News Groups, for example, you get quickly
flamed and land in kill files ...

Regards
Stefan




Re: GnuPG keyring conversion
#304696
Author: Stefan Claas
Date: Tue, 14 May 2019 11:21
20 lines
1909 bytes
Am 14.05.2019 um 12:36 schrieb Stefan Claas:

> O.k. for the apa-s community the disadvantage with box may be
> that you can't create a Nym account and you can't sign a posting,
> but for mysef I usually no longer sign postings, because when
> doing so in German News Groups, for example, you get quickly
> flamed and land in kill files ...

And one more important point, with GnuPG you can hide the receiver,
which is pratical when using Remailers.

With box you can't do this, so I believe when publishing
your box pub key and using the same pub key with Remailers
third parties know that you are the sender, because I assume
that the send message(s) can be analyzed to see who is
the sender. But please don't quote me on this, because
I am no programmer or cryptographer.

Regards
Stefan
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads