I want to email users an encrypted file from a Django Backend Script on Ubuntu

I want to email users an encrypted file from a Django Backend Script (running through manage.py) on Ubuntu. How can I encrypt the data so that it is unreadable by 3rd parties who might intercept or even just read the email and will require a password string that I can supply to the end user via another method (not email.)

What encryption scheme and application for Django/Ubuntu can I use so that a doctor could easily decrypt the data from their PC/MAC?


http://code.google.com/p/django-email-extras/


PGP was invented for just this purpose.

EDIT: you might also consider the free (as in freedom), open-source project GPG which is the same standard, just free :)


As Scott mentioned, you can use GPG to encrypt the data. See also the Python bindings you can choose from to interface. To send email from Django (backend script or not), read the docs.

链接地址: http://www.djcxy.com/p/57020.html

上一篇: 帮助创建ZIP文件Windows不会阻止

下一篇: 我想通过电子邮件向用户发送来自Ubuntu上的Django后端脚本的加密文件