开发者

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

开发者 https://www.devze.com 2022-12-11 14:58 出处:网络
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 eve

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.开发者_StackOverflow中文版)

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


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://code.google.com/p/django-email-extras/

0

精彩评论

暂无评论...
验证码 换一张
取 消