Sam Trenholme's webpage
This article was posted to the Usenet group alt.hackers in 1995; any technical information is probably outdated.

Re: Auto pgp-sign news hack


Article: 7559 of alt.hackers
From: gene@insti.physics.sunysb.edu (Eugene Tyurin)
Newsgroups: alt.hackers
Subject: Re: Auto pgp-sign news hack
Date: 29 Mar 1995 17:06:40 GMT
Organization: Institute for Theoretical Physics, Stony Brook University
Lines: 26
Approved: president@whitehouse.gov
Message-ID: 3lc430$avf@adam.cc.sunysb.edu
Reply-To: gene@insti.physics.sunysb.edu
NNTP-Posting-Host: max.physics.sunysb.edu
Status: RO

-----BEGIN PGP SIGNED MESSAGE-----

Ok, I believe in the supreme powers of VI. :^) So, here are 2 VI macros
I wrote, they allow you to PGP the file upon exiting. Simple, but
efficient:

" PGP the whole file and sign it. Exit Vi afterwards.
map \xf 1G!Gpgp -fsweat^MZZ

" PGP-sign the article body (the whole file except the first paragraph).
map \xa 1G}!Gpgp -fsat +clearsig=on^MZZ

Don't forget to replace "^M" with literal carriage return.

-----BEGIN PGP SIGNATURE-----
Version: 2.6

iQBVAgUBL3mVSyB+mADHffSlAQHeiAH7BfjpuddOlW9eS7w9b4+dEX0KNJ4J4IQy
+O3vEDzXNfTzaXeFU9PCHsGkITpWzJmmRWINJCunX4v1cVn5bhfDtg==
=7/xt
-----END PGP SIGNATURE-----
--
Eugene Tyurin, Inst. for Theoretical Physics  -  Stony Brook Univ.
            WWW: http://www.physics.sunysb.edu:80/~gene/plan.html
       Internet: gene@insti.physics.sunysb.edu
Those who don't understand Unix are doomed to reinvent it, poorly.



Parent Parent Parent

Child

Back to index