pgp-mime

Tools for dealing with Pretty Good Privacy (PGP) and email
Download

pgp-mime Ranking & Summary

Advertisement

  • Rating:
  • License:
  • GPL
  • Price:
  • FREE
  • Publisher Name:
  • W. Trevor King
  • Publisher web site:
  • http://www.physics.drexel.edu/~wking/

pgp-mime Tags


pgp-mime Description

pgp-mime is a Python module and tools for constructing and sending PGP/MIME email.The pgp_mime module makes it easy to construct and dispatch signed and/or encrypted email using PGP and RFC 3156. It uses GnuPG to perform the cryptography.InstallationPackagesGentooI've packaged pgp-mime for Gentoo. You need layman and my wtk overlay. Install with:# emerge -av app-portage/layman# layman --add wtk# emerge -av dev-python/pgp-mimeDependenciespgp-mime is a simple package with no external dependencies outside the Python 3 standard library. There are a number of GnuPG wrappers for python out there, but none of them seem mature/stable enough to be worth installing. Instead, we use the subprocess module to call gpg directly. If this isn't working for you, you need only replace the *_bytes commands which handle the cryptography.Installing by handpgp-mime is available as a Git repository: git clone git://tremily.us/pgp-mime.gitSee the homepage for details. To install the checkout, run the standard: python setup.py installUsagePgp-mime has grown up as I've become more experienced with Python. The current interface is much simpler, and there are lots of docstrings showing you how to use each function.If you're looking for a higher level example, pgp-mime includes a command line script send-pgp-mime.py that allows you to send signed and/or encrypted email from the command line. I recommend you use gpg2 with my wrappers and pinentry program to allow easy pinentry from the command line. Here's how you could mail signed grades to your class:$ FROM="From: Rincewind < rincewind@uu.edu >"$ head -n2 gradesTwoflower < tf@isa.ae.cw >|9Eric Thursley < et@pseudopolis.net >|10$ while read LINE; do STUDENT=$(echo "$LINE" | cut -d '|' -f 1) GRADE=$(echo "$LINE" | cut -d '|' -f 2) HEAD=$(echo -e "$FROM\nTo: $STUDENT\nSubject: Grades") BODY=$(echo -e "$STUDENT,\n\nYou got a $GRADE.\n\nGood job.") send-pgp-mime.py -H Product's homepage


pgp-mime Related Software