Module Expr Str Import alias Import alias Import alias Import alias Import alias Import alias Import alias TryExcept body Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore NameLoad handlers ExceptHandler type NameLoad body Import alias Expr Call AttributeLoad NameLoad attr Str Assign NameStore NameLoad ImportFrom alias Assign NameStore Call AttributeLoad Str attr ListComp Call NameLoad BinOpBitXor NameLoad Num comprehension NameStore Call NameLoad Num Assign NameStore Call AttributeLoad Str attr ListComp Call NameLoad BinOpBitXor NameLoad Num comprehension NameStore Call NameLoad Num FunctionDef arguments args NameParam NameParam NameParam defaults NameLoad body Expr Str If CompareIs NameLoad NameLoad body Assign NameStore AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad Call AttributeLoad NameLoad attr BinOpAdd NameLoad NameLoad attr Return Call AttributeLoad NameLoad attr NameLoad keyword NameLoad keyword AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults Num Str body Expr Str If UnaryOpNot NameLoad body Expr Call AttributeLoad NameLoad attr Call AttributeLoad Call AttributeLoad NameLoad attr BinOpMod Str TupleLoad Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr attr Return Call AttributeLoad Str attr ListComp Call AttributeLoad NameLoad attr NameLoad comprehension NameStore Call NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str If CompareNotEq Call NameLoad NameLoad Call NameLoad NameLoad body Return NameLoad Assign NameStore Num For TupleStore NameStore NameStore Call NameLoad NameLoad NameLoad body AugAssignBitOr NameStore BinOpBitXor Call NameLoad NameLoad Call NameLoad NameLoad Return CompareEq NameLoad Num decorator_list FunctionDef arguments args NameParam defaults body Expr Str Return Call NameLoad Call AttributeLoad NameLoad attr Str Num decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Return Call AttributeLoad NameLoad attr BinOpMod NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Str Assign TupleStore NameStore NameStore TupleLoad Call NameLoad Call NameLoad If CompareGt Call NameLoad NameLoad AttributeLoad NameLoad attr body Assign NameStore Call AttributeLoad Call NameLoad NameLoad attr AugAssignAdd NameStore BinOpMult Call NameLoad Num BinOpSub AttributeLoad NameLoad attr Call NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam defaults Num NameLoad body Expr Str Assert CompareGt NameLoad Num If UnaryOpNot NameLoad body Assign NameStore AttributeLoad NameLoad attr Assign NameStore AttributeLoad Call NameLoad attr If UnaryOpNot NameLoad body Assign NameStore NameLoad If CompareGt NameLoad BinOpMult BinOpSub BinOpPow Num Num Num NameLoad body Raise Call NameLoad Str Assign NameStore UnaryOpUSub BinOpFloorDiv UnaryOpUSub NameLoad NameLoad Assign NameStore BinOpSub NameLoad BinOpMult BinOpSub NameLoad Num NameLoad Assign NameStore BinOpMod Str BinOpMult NameLoad Num FunctionDef arguments args NameParam defaults body FunctionDef arguments args defaults body Assign NameStore BinOpAdd NameLoad Call AttributeLoad NameLoad attr Str NameLoad For NameStore Call NameLoad Call NameLoad NameLoad body Assign NameStore Call AttributeLoad Call NameLoad NameLoad NameLoad NameLoad attr Expr Yield Call NameLoad NameLoad decorator_list Return Call NameLoad Call NameLoad AttributeLoad NameLoad attr Call NameLoad NameLoad decorator_list Assign NameStore ListComp Call NameLoad NameLoad comprehension NameStore Call NameLoad Num BinOpAdd NameLoad Num Return BinOpAdd Call AttributeLoad Str attr SubscriptLoad NameLoad Slice Num SubscriptLoad SubscriptLoad NameLoad Index Num Slice NameLoad decorator_list
N/A N/A 
Django's standard crypto functions and utilities.
 N/A hmac N/A struct N/A hashlib N/A binascii N/A operator N/A time N/A random N/A N/A N/A random N/A N/A random SystemRandom N/A using_sysrandom True N/A N/A N/A NotImplementedError N/A N/A warnings N/A N/A N/A warnings warn A secure pseudo-random number generator is not available on your system. Falling back to Mersenne Twister. N/A using_sysrandom False django.conf settings N/A _trans_5c N/A N/A join N/A N/A chr N/A x 92 N/A x N/A xrange 256 N/A _trans_36 N/A N/A join N/A N/A chr N/A x 54 N/A x N/A xrange 256 salted_hmac N/A N/A key_salt value secret N/A None N/A N/A 
    Returns the HMAC-SHA1 of 'value', using a key generated from key_salt and a
    secret (which defaults to settings.SECRET_KEY).

    A different key_salt should be passed in for every application of HMAC.
     N/A N/A secret None N/A N/A secret N/A settings SECRET_KEY N/A key N/A N/A N/A N/A hashlib sha1 N/A key_salt secret digest N/A N/A N/A hmac new key msg value digestmod N/A hashlib sha1 N/A get_random_string N/A N/A length allowed_chars N/A 12 abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789 N/A N/A 
    Returns a securely generated random string.

    The default length of 12 with the a-z, A-Z, 0-9 character set returns
    a 71-bit value. log_2((26+26+10)^12) =~ 71 bits
     N/A N/A using_sysrandom N/A N/A N/A N/A random seed N/A N/A N/A N/A hashlib sha256 N/A %s%s%s N/A N/A N/A random getstate N/A N/A time time N/A settings SECRET_KEY digest N/A N/A N/A join N/A N/A N/A random choice allowed_chars N/A i N/A range length N/A constant_time_compare N/A N/A val1 val2 N/A N/A N/A 
    Returns True if the two strings are equal, False otherwise.

    The time taken is independent of the number of characters that match.
     N/A N/A N/A len val1 N/A len val2 N/A N/A False N/A result 0 N/A N/A x y N/A zip val1 val2 N/A N/A result N/A N/A ord x N/A ord y N/A N/A result 0 N/A _bin_to_long N/A N/A x N/A N/A N/A 
    Convert a binary string into a long integer

    This is a clever optimization for fast xor vector math
     N/A N/A long N/A N/A x encode hex 16 N/A _long_to_bin N/A N/A x hex_format_string N/A N/A N/A 
    Convert a long integer into a binary string.
    hex_format_string is like "%020x" for padding 10 characters.
     N/A N/A N/A binascii unhexlify N/A hex_format_string x N/A _fast_hmac N/A N/A key msg digest N/A N/A N/A 
    A trimmed down version of Python's HMAC implementation
     N/A N/A dig1 dig2 N/A N/A digest N/A digest N/A N/A N/A len key N/A dig1 block_size N/A N/A key N/A N/A N/A digest key digest N/A key N/A N/A chr 0 N/A N/A dig1 block_size N/A len key N/A N/A N/A dig1 update N/A N/A key translate _trans_36 N/A N/A N/A dig1 update msg N/A N/A N/A dig2 update N/A N/A key translate _trans_5c N/A N/A N/A dig2 update N/A N/A dig1 digest N/A dig2 N/A pbkdf2 N/A N/A password salt iterations dklen digest N/A 0 None N/A N/A 
    Implements PBKDF2 as defined in RFC 2898, section 5.2

    HMAC+SHA256 is used as the default pseudo random function.

    Right now 10,000 iterations is the recommended default which takes
    100ms on a 2.2Ghz Core 2 Duo.  This is probably the bare minimum
    for security given 1000 iterations was recommended in 2001. This
    code is very well optimized for CPython and is only four times
    slower than openssl's implementation.
     N/A N/A iterations 0 N/A N/A digest N/A N/A digest N/A hashlib sha256 N/A hlen N/A N/A digest digest_size N/A N/A dklen N/A N/A dklen hlen N/A N/A dklen N/A N/A N/A 2 32 1 hlen N/A N/A N/A OverflowError dklen too big N/A l N/A N/A N/A dklen hlen N/A r N/A dklen N/A N/A l 1 hlen N/A hex_format_string N/A %%0%ix N/A hlen 2 F N/A N/A i N/A N/A U N/A N/A N/A N/A N/A u N/A salt N/A N/A struct pack >I i N/A j N/A xrange N/A int iterations N/A N/A u N/A N/A N/A _fast_hmac password u digest digest N/A N/A N/A _bin_to_long u N/A N/A N/A _long_to_bin N/A reduce N/A operator xor N/A U hex_format_string N/A N/A T N/A N/A F x N/A x N/A range 1 N/A l 1 N/A N/A N/A N/A join N/A T N/A -1 N/A N/A T N/A -1 N/A r N/A