Detaching signature from signed object

ಚಿರಾಗ್ ನಟರಾಜ್ mailinglist at chiraag.me
Sun Jun 20 20:22:53 CEST 2021


12021/04/10 05:36.72 ನಲ್ಲಿ, Matthew Richardson via Gnupg-users <gnupg-users at gnupg.org> ಬರೆದರು:
> Is there any way in GnuPG to detach (or extract) a signature from a signed
> object?  For example, a signed object is created with:-
> 
> >gpg --armor --output signedfile.asc --sign inputfile.txt
> 
> where what is wanted is a detached signature which would verify against
> inputfile.txt.
> 
> This feature is in PGP 2:-
> 
> >pgp -sa inputfile.txt -o signedfile.asc
> >pgp -b signedfile.asc -o verified.txt
> 
> which also produces verified.pgp as the detached signature.  The feature is
> described (briefly) in the PGP 2 documentation thus:-
> 
> >To detach a signature certificate from a signed message:
> >     pgp -b ciphertextfile
> 
> The reason for asking is that I operate a service [1], which currently used
> PGP 2, and which would benefit from more recent crypto, but which also uses
> "pgp -b" extensively.
> 
> Best wishes,
> Matthew
> 
> [1] http://www.itconsult.co.uk/stamper.htm
> 
> _______________________________________________
> Gnupg-users mailing list
> Gnupg-users at gnupg.org
> http://lists.gnupg.org/mailman/listinfo/gnupg-users

I believe you're looking for the -sb option, which creates a detached signature.

HTH!

- Chiraag
-- 
ಚಿರಾಗ್ ನಟರಾಜ್
Pronouns: he/him/his
-------------- next part --------------
A non-text attachment was scrubbed...
Name: publickey - mailinglist at chiraag.me - b0c8d720.asc
Type: application/pgp-keys
Size: 713 bytes
Desc: not available
URL: <https://lists.gnupg.org/pipermail/gnupg-users/attachments/20210620/0af8133c/attachment.key>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 249 bytes
Desc: OpenPGP digital signature
URL: <https://lists.gnupg.org/pipermail/gnupg-users/attachments/20210620/0af8133c/attachment.sig>


More information about the Gnupg-users mailing list