<span style="font-family: Arial; font-size: 14px; line-height: 150%;">On 6/20/2021 at 2:13 PM, "Matthew Richardson via Gnupg-users" <gnupg-users@gnupg.org> wrote:<blockquote style="border-left:solid 1px #ccc;margin-left:10px;padding-left:10px;">Is there any way in GnuPG to detach (or extract) a signature from a signed<br>object?  For example, a signed object is created with:-<br><br>>gpg --armor --output signedfile.asc --sign inputfile.txt<br><br>where what is wanted is a detached signature which would verify against<br>inputfile.txt.<br><br>This feature is in PGP 2:-<br><br>>pgp -sa inputfile.txt -o signedfile.asc<br>>pgp -b signedfile.asc -o verified.txt<br><br>which also produces verified.pgp as the detached signature.  The feature is<br>described (briefly) in the PGP 2 documentation thus:-<br><br>>To detach a signature certificate from a signed message:<br>>     pgp -b ciphertextfile<br><br>=====<br>Don't know how to do this in GnuPG.<br><br>Cannot be done in the PGP  commandlines later than 2.x with the -b command.<br>Using the -b command in later PGP commandline versions, just decrypts, but does not save the signature.<br><br>There is a program that can do this for DH keys, using the -b command but only when encrypted with AES or 3DES:<br><br>Filecrypt<br><a href="https://m.majorgeeks.com/files/details/filecrypt.html">https://m.majorgeeks.com/files/details/filecrypt.html</a><br><br>(n.b  I have NOT used 'this' version, but I did use the original Filecrypt when it first came out , to successfully use the -b command):<br><a href="https://www.angelfire.com/pr/pgpf/fcs.html">https://www.angelfire.com/pr/pgpf/fcs.html</a><br><br>The developer of Filecrypt is accessible in a link when downloading the Filecrypt on the majorgeeks site mentioned above.<br>You might consider discussing a version of Filecrypt with him for your detached signature use.<br><br>vedaal<br><br><br><br><br></blockquote></span>