Constant | RANDOM_STRING_CHARS |
Undocumented |
Class | InvalidAlgorithm |
Algorithm is not supported by hashlib. |
Function | constant_time_compare |
Return True if the two strings are equal, False otherwise. |
Function | get_random_string |
Return a securely generated random string. |
Function | pbkdf2 |
Return the hash of password using pbkdf2. |
Function | salted_hmac |
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. |
str
=
Undocumented
Value |
|
Return a securely generated random string.
allowed_chars
(26+26+10), this gives: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.
A different key_salt should be passed in for every application of HMAC.