|
make_password(password[, salt, hashers])
New in Django 1.4: Please see the release notes
Creates a hashed password in the format used by this application.
It takes one mandatory argument: the password in plain-text. Optionally, you can provide a salt and a hashing algorithm to use, if you don't want to use the defaults (first entry of PASSWORD_HASHERS setting).
Currently supported algorithms are: 'pbkdf2_sha256', 'pbkdf2_sha1', 'bcrypt' (see Using bcrypt with Django), 'sha1', 'md5', 'unsalted_md5' (only for backward compatibility) and 'crypt' if you have the crypt library installed.
If the password argument is None, an unusable password is returned (a one that will be never accepted by django.contrib.auth.hashers.check_password()). |
|