Skip to content

Instantly share code, notes, and snippets.

@malexmave
Created October 14, 2013 18:56
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save malexmave/6980277 to your computer and use it in GitHub Desktop.
Save malexmave/6980277 to your computer and use it in GitHub Desktop.
gpgit behaviour
$ cat t
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512
test
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/
iQJ8BAEBCgBmBQJSXDxtXxSAAAAAAC4AKGlzc3Vlci1mcHJAbm90YXRpb25zLm9w
[...]
7n1vdAz0VgNy54d2LaG9BmGs40KXQODYdjnu+yS0vqu/2DpxcMiT9ytaA7KfUKXs
6Q1GA3qXZVk2VCFx42wW
=6SjB
-----END PGP SIGNATURE-----
$ cat t | ./gpgit.pl [my email]
Content-Type: multipart/encrypted; boundary="----------=_1381776689-11721-0"; protocol="application/pgp-encrypted"
This is a multi-part message in MIME format...
------------=_1381776689-11721-0
Content-Type: application/pgp-encrypted; name="msg.asc"
Content-Disposition: inline; filename="msg.asc"
Content-Transfer-Encoding: 7bit
Version: 1
------------=_1381776689-11721-0
Content-Type: application/octet-stream
Content-Disposition: inline
Content-Transfer-Encoding: 7bit
-----BEGIN PGP MESSAGE-----
Version: GnuPG v1.4.11 (GNU/Linux)
hQIMAx/OzVfxSKdLARAAgRD4LeyPeR8Yvnft8WNmsCbWwZmYLfPlJAVRLjromtXf
[...]
dDkfhHgUq+LNb5ydARWwilPsWZyj/jVqPZpcLinZI49UZOkJ6iA/U76xpyD1OUDD
WDaYxsOL60922H86EEI=
=k3Ai
-----END PGP MESSAGE-----
------------=_1381776689-11721-0--
$ cat t | ./gpgit.pl [my email] | gpg --decrypt
You need a passphrase to unlock the secret key for
user: [user]
4096-bit RSA key, ID [keyid], created XXXX-XX-XX
(subkey on main key ID [KeyID])
gpg: encrypted with 4096-bit RSA key, ID [KeyID], created XXXX-XX-XX
[user]
test
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/
iQJ8BAEBCgBmBQJSXDxtXxSAAAAAAC4AKGlzc3Vlci1mcHJAbm90YXRpb25zLm9w
[...]
7n1vdAz0VgNy54d2LaG9BmGs40KXQODYdjnu+yS0vqu/2DpxcMiT9ytaA7KfUKXs
6Q1GA3qXZVk2VCFx42wW
=6SjB
-----END PGP SIGNATURE-----
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment