I am trying to sign some data manually using gpg and am getting bad results. I am trying to get this kind of results:
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512
Text text text text text text text text text text text text text text text text text text text, etc
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (GNU/Linux)
ixyzxyzxyzxyzxyzxyzxyzxyzxyzxyzxyzxyzxyzxyzxyzxyzxyzxyzxyzxyzxyzxyzxyzxyzxyzxyzxyzxyzxyzxyzxyzxyzxyzxyzxyzxyzx
=p3sW
-----END PGP SIGNATURE-----
I am using this string:
c:\gnupg\gpg.exe --armor --default-key MyDefaultKey --output c:\gnupg\signed.txt.gpg -s c:\gnupg\plain.txt
(plain.txt = Text text text text text text text text text text text text text text text text text text text, etc)
This results in an encrypted block. If I take out the --armor, it is close to what I want, but everything surrounding my data is hex jibberish except for the ‘Text…etc’ string. How does one sign to get the proper ASCII results?