[Tutor] Email encryption

A.M. Kuchling amk@amk.ca
Wed Aug 6 17:11:52 2003


On Sat, Aug 02, 2003 at 07:15:37AM -0500, Mike Wagman wrote:
> I need to encrypt/decrypt information (files) by email can any one help
> me.  

It's not quite clear what you're asking for.  Are you asking to send
encrypted e-mail from Python code?  There are two commonly-used
formats for encrypted e-mail, OpenPGP (used by GnuPG, PGP, and
PGP-derived programs) and S/MIME (Mozilla Mail, Outlook, most other
e-mail programs).  

To generate OpenPGP, you can install GnuPG, which is a command-line
program, and invoke it from Python using os.popen() or the popen2
module.  

To generate S/MIME, see http://www.post1.com/home/ngps/m2/howto.smime.html

If you want to do something else, such as encrypting files using a key
received via e-mail, you'll have to explain what it is.

--amk
I'm as truthful, honest, and about as boring as they come.
      -- Mel, in "The Ultimate Foe"