Encrypting / decrypting without importing keys?
Atom 'Smasher'
atom at suspicious.org
Thu Oct 7 01:15:15 CEST 2004
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256
On Wed, 6 Oct 2004, Eric B. wrote:
> Thanks! That was just what I needed. However, have a followup question
> though. I now need to programatically convert the ascii key to a binary
> key. Doing a quick export of a key in binary format and in armoured format,
> I noticed that I can base64 encode the binary key and get an almost exact
> match to the armoured format. However, there seem to be five characters on
> a newline (=oge7) that appear in the armoured key which are not my base64
> conversion of the binary key. I can only assume them to be some form of a
> CRC check, but am not sure. Is there armoured version of the key always
> followed by a CRC check? If so, is it a CRC32 check? CRC24? etc? How can
> I tell when/where the key ends and the CRC checks starts? Does a armoured
> key always end with a specific character? Is there a doc which specifies
> the format of the armoured key somewhere?
=================
something like this will read an ascii key from the file "key.asc" and
write a binary key to file "key.binary":
gpg --dearmor < key.asc > key.binary
the "--dearmor" isn't very well documented, but among the things it can do
is convert an ascii key into a binary key.
...atom
_________________________________________
PGP key - http://atom.smasher.org/pgp.txt
762A 3B98 A3C3 96C9 C6B7 582A B88D 52E4 D9F5 7808
-------------------------------------------------
"I am somehow less interested in the weight and
convolutions of Einstein's brain than in the near
certainty that people of equal talent have lived and
died in cotton fields and sweatshops."
-- Stephen Jay Gould
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.3.6 (FreeBSD)
Comment: What is this gibberish?
Comment: http://atom.smasher.org/links/#digital_signatures
iQEcBAEBCAAGBQJBZHyJAAoJEAx/d+cTpVciyI4IAJNNdVd4puhO0rNpO5/X1wd9
wY93q3yAZ4C3JEYOA0nxmlF+fUroYX0eYCwEmEo4GDW4DmJKXTHATSJObmFDrWc/
ZiObPcjSKZADg2FrJCW8k74ZhA2FY7VhmDoAldKhftjGWM84HkwGcaRhcRdzJZkp
KjcYGzHA13pm+wQNVW2QiAz66ehaIgQv1IfmVLtMZUy7DT+00D4mVjsz0BKKq+0i
8zH2J4VpVfJv3yv+4LcOoiLI0uwzPVVutNOL8HXNsq2ezBL/VI7YrvUVzk2wXXJw
eJ7FcPCPqF721rrqpMw7AFMKRh8j1t+zay2gfyhIq61pLRYk9YrasdhIImjXu6Q=
=PpZb
-----END PGP SIGNATURE-----
More information about the Gnupg-users
mailing list