If I use gpg --detach-sig file
, then I get a small file.sig
, but it is not plain text, so this is not useful if you wish to send the signature in a plain text format.
If I use gpg --clearsign file
, then I get file.asc
which contains the whole file plus a plain text signature at the end of the file. For viewing the signature, this is not easy if the payload is something other than text, since you can't open the file as plain text if your text editor can't handle the raw payload data. And I would prefer the payload and signature be separate files.
If I use both of the arguments at once, gpg --detach-sig --clearsign file
, it behaves identically to only --clearsign
, basically ignoring --detach-sig
.
How can I create a detached plain text GPG signature?
so this is not useful if you wish to send the signature in a plain text format.
?--armor
?