Display a gpg signature as a string of zeros and ones?

joao baleza joaobeleza at yahoo.com
Fri Apr 7 18:55:05 CEST 2017

Sorry. I was not clear enough. I will try to explain better.  As
far has I understand, a 2048 key gpg RSA digital signature has
2048 bits. But the binary gpg signature file has more than 2048
bits because the file has some extra data besides the signature
itself. My question is: is there any way to display a gpg
signature with no extra data, just the signature itself, as a
string of zeros and ones?


    Em Sexta-feira, 7 de Abril de 2017 17:09, Daniel Kahn Gillmor <dkg at fifthhorseman.net> escreveu:

 On Thu 2017-04-06 13:39:23 -0400, joao baleza via Gnupg-users wrote:
> Hi there,is there any way to display a gpg signature as a string of
> zeros and ones?Thanking in advance,jbs

any data can be represented as a string of ones and zeros, but there are
many different convention for how to order and group such a thing.

the xxd tool will take any input and convert it to arbitrary forms.  for
ones and zeros, you can use -bits.  for example:

0 dkg at alice:~$ echo this is a test | xxd -bits
00000000: 01110100 01101000 01101001 01110011 00100000 01101001  this i
00000006: 01110011 00100000 01100001 00100000 01110100 01100101  s a te
0000000c: 01110011 01110100 00001010                            st.
0 dkg at alice:~$

you can use this technique on anything, including an OpenPGP signature.



-------------- next part --------------
An HTML attachment was scrubbed...
URL: </pipermail/attachments/20170407/d6219e7f/attachment.html>

More information about the Gnupg-users mailing list