djangosnippets.org: Latest snippets tagged with 'crypto'https://djangosnippets.org/tags/crypto/2009-02-19T12:13:38.875899-06:00Saving passwords for other services (semi-)securely in a database
2009-02-19T12:13:38.875899-06:00equanimityhttps://djangosnippets.org/snippets/1330/<p>I've often found myself wanting to store passwords for other web services (e.g. maillist managers, IMAP accounts, IM accounts etc) for use by a web application, but have not wanted to hard-code them in <code>settings.py</code> or store them as plaintext in the database.</p>
<p>This uses the <a href="http://www.dlitz.net/software/pycrypto/">pycrypto</a> library to encrypt …</p>
Freely redistributable