PGP Services for Mail.app

I have made a small set of utilities to make PGP work together with Mail.app through services. This is an archive made with gnutar and compressed with gzip.

What does it do?

	1. If you compose a message, you can select a piece of text and through the Services->Terminal->PGP EnCrypt Menu encrypt it with one of your installed keys. You can choose from:
	1. Complete encryption with your secret key
	2. Digital Signature
	3. Complete encryption with somebody else's public key
	4. A combination of 1 and 3.
	After you have encrypted, send the message off.
	
	2. if you receive a PGP signed/encrypted message you select the text and through the Services-Terminal->PGP DeCrypt and Show you can make it decrypt automatically and display in a separate window.
	
What do you need to run it?

	1. Installed version of perl
	2. Installed version of ShellPanel
	3. An installed version of pgp 2.1 (I do not knwo if it works with a later version, but the working depends on the format of what "pgp -kv" displays, so if that has changed, it will probably not work.
	4. A designated directory for config.txt, pubring.pgp and secring.pgp

How do you install?

	First you install perl, ShellPanel. They must be accessible through your path.
	Then you compile the Text program. This is a program that you can call from the commandline and that displays files or stdin from files. The program does not have a menu or an icon and it quits after the last window has closed. You install the Text program somewhere along your path. Then you install the perl scripts somewhere.
	And you add the PGPCryptServices to your Terminal services.
	Ready!

	If it doesn't work emmediately, logout and login (I remember something like that necessary when installing new services).
	
Note about passwords

I do not have my keyrings protected by a password. Personally I think that this security is mostly like having envelopes on your mail and not something that is necessarily government proof (heck, with a search warrant they can come in my house and read my letters anyway, and that's fine with me for the time being). If you have your keyrings protected by a password, then you either have to create a program that you can use to enter they password or you edit the perl scripts to give it to pgp directly. (That is possible, isn't it?).

I'll probably make a separate package for Text (called ShellText) that may consist of Text and also a TextField program (the latter to enter a password).

R&A
Gerben Wierda
gerben@rna.indiv.nluug.nl

PS. I would like NeXT to publicise the interface definition for cryptor.bundle so we could really integrate PGP with NEXTSTEP