Proposal - variable line width for ASCII armor output

Stefan Claas sac at 300baud.de
Thu Feb 27 00:13:13 CET 2020


Stefan Claas via Gnupg-users wrote:

> Michał Górny wrote:
> 
> > On Wed, 2020-02-26 at 13:34 -0500, vedaal via Gnupg-users wrote:  
> > > 
> > > On 2/26/2020 at 11:27 AM, "Stefan Claas via Gnupg-users"
> > > <gnupg-users at gnupg.org> wrote:
> > >   
> > > > I like to make a proposal for future versions of GnuPG,
> > > > where a user can change the line witdh of ASCII armor
> > > > output.  
> > > 
> > > =====
> > > 
> > > It would not be compatible with older versions.
> > > 
> > > The simplest thing for you, (or any users who prefer the aesthetics of a
> > > particular custom line width), would be to first make the GnuPG ascii
> > > armored message, then change it as you want to and copy, paste, and post,
> > > with a little note of how to change it back for verification.
> > >   
> > 
> > Why 'change it back'?  Unless I'm mistaken, GPG shouldn't have any real
> > problem with a different base64 width, as long as the overall layout is
> > preserved.  I've just did a quick test and GPG is entirely happy with
> > the result after rewrapping at 50 chars, as well as after cheap
> > rewrapping with uneven lines.  
> 
> Just did a quick test ... :-)
> 
> -----BEGIN PGP ARMORED FILE-----
> Comment: Use "gpg --dearmor" for unpacking
> 
> VGhhbmtzIGZvciBwb2ludGluZyB0aGF0IG91dCEgSG
> VyZSBpcyBhIHF1aWNrCnRlc3Qgc2hvd2luZyB0aGF0
> IGl0IHdvcmtzLgoKUmVnYXJkcwpTdGVmYW4K=cex4
> -----END PGP ARMORED FILE-----

Works also nicely with signatures. :-)

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

Zwölf Boxkämpfer jagen Victor
quer über den großen Sylter
Deich. 

Grüße
Stefan
-----BEGIN PGP SIGNATURE-----

iQEzBAEBCAAdFiEEUmRPI2NxNYXBCN+dVv
bYx6vEHHYFAl5W+UYACgkQVvbYx6vEHHZv
DQf/dFmJOOkzNQrSYYeJAEFhAKpBJp55Vu
Nx94PtuZR/6oj2ZK3TRwS8tIMRfiE4W3jQ
RVS2yn9WNLRvsYEPKaGxNhK9p47xR/AQHH
u2m+hdd7BcvSIAt3jwbI5Zi6L9/VcCsYpV
5CsvGB/qkqtasbJjNvVf+FmLNEyqIwIR9i
EBS9E57kJzZbZn2AwT9CbF9iDvvC2bo61W
bP6LYrS8dDydKLQag6/kHBVksTxN/vA2Yd
LLqduADCdGnVGh1SAfh94fC/rUjZjzoFHD
TTIUztQK4egbITVyyg9YhBNxxCtmc/bfri
P2TgESE7pl1nyB8Q3vKHCusuZRnWf1e9X8
LbHkng===bv72

Regards
Stefan


-- 
Signal (Desktop) +4915126058973
https://keybase.io/stefan_claas
           



More information about the Gnupg-users mailing list