djangosnippets.org: Latest snippets tagged with 'crypt'https://djangosnippets.org/tags/crypt/2016-06-26T13:58:06.005694-05:00Crypt-SHA512 password hasher
2016-06-26T13:58:06.005694-05:00ezubillagahttps://djangosnippets.org/snippets/10572/<p>Password hashing method using the crypt-sha512 algorithm, To be able to generate password compatible with the crypt-sha512 method avaiable in the standard crypt function since glib2.7 and used on modern linux distros. This provides compatibility with programs and systems that use the glibc crypt library for encrypting passwords (such as …</p>
Freely redistributableEncryptField
2008-09-19T13:50:50.761889-05:00volksmanhttps://djangosnippets.org/snippets/1067/<p>I was trying to create a custom field to use the mysql encrypt() function on some data I wanted to store in the DB. initcrash on IRC pointed me to <a href="https://tracpub.yaco.es/cmsutils/browser/trunk/db/fields.py?rev=66">this code</a> which I butchered as best as my little brain could. Amazingly enough I got it working (thanks to …</p>
Freely redistributableUse crypt instead of sha1 as password hash algorithm
2007-08-26T11:39:45.166464-05:00akaiholahttps://djangosnippets.org/snippets/389/<p>This snippet uses signals to replace the <code>contrib.auth.models.User.set_password()</code> function with one that uses <em>crypt</em> instead of <em>sha1</em> to hash the password.</p>
<p><em>Crypt</em> is of course cryptographically inferior to <em>sha1</em>, but this may be useful for interoperability with legacy systems e.g. when sharing a user authentication database with unix, a …</p>
Freely redistributable