views:

135

answers:

2

I was wondering if there's any django module, or in such case any python module, that will allow me to create my own application to manage the creation, administration, etc of GnuPG keys, as well as the ability to sign and encrypt documents through this application?

If there's no such module, how can I do that?

Thank you.

+2  A: 

GnuPGInterface can do all of that -- it's essentially a Python wrapper around the GnuPG program.

PyMe might be easier to use as it is designed to wrap around GPGME (ME = Made Easy).

From the PyME features page:

  • Ability to sign, encrypt, decrypt, and verify data.

  • Ability to list keys, export and import keys, and manage the keyring.

Mark Rushakoff
+4  A: 

I wrote a Django app django-email-extras that does exactly what you're looking for. It lets users manage GPG keys via the Django admin and encrypts all mail to recipients with valid keys and includes support for multi-part templated emails with attachments.

Stephen McDonald