module documentation
Django's standard crypto functions and utilities.
Exception |
|
Algorithm is not supported by hashlib. |
Function | constant |
Return True if the two strings are equal, False otherwise. |
Function | get |
Return a securely generated random string. |
Function | pbkdf2 |
Return the hash of password using pbkdf2. |
Function | salted |
Return the HMAC of 'value', using a key generated from key_salt and a secret (which defaults to settings.SECRET_KEY). Default algorithm is SHA1, but any algorithm name supported by hashlib can be passed. |
Constant | RANDOM |
Undocumented |
Return a securely generated random string. The bit length of the returned value can be calculated with the formula: log_2(len(allowed_chars)^length) For example, with default `allowed_chars` (26+26+10), this gives: * length: 12, bit length =~ 71 bits * length: 22, bit length =~ 131 bits