Module Import alias ImportFrom alias FunctionDef arguments args NameParam defaults Num body Expr Str Assign NameStore Str Assign NameStore BinOpAdd BinOpAdd NameLoad Call AttributeLoad NameLoad attr Str Assign NameStore ListLoad Assign NameStore Call NameLoad For NameStore Call NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad Return Call AttributeLoad Str attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults NameLoad Str body Expr Str Assign NameStore Call NameLoad NameLoad If CompareIs NameLoad NameLoad body Assign NameStore Call NameLoad Assign NameStore Call AttributeLoad Str attr keyword NameLoad keyword NameLoad Return Call AttributeLoad NameLoad attr NameLoad NameLoad decorator_list
N/A N/A crypt random SystemRandom random_salt_function N/A N/A salt_len N/A 12 N/A N/A 
    Creates random salt for password.

    :param salt_len: Length of salt. Default :data:`12`
    :type param: :class:`int`

    :return: Computed salt
    :rtype: str
     N/A charset abcdefghijklmnopqrstuxyz N/A charset N/A N/A charset N/A N/A charset upper 1234567890 N/A chars N/A N/A rand N/A SystemRandom N/A _ N/A range salt_len N/A N/A N/A N/A chars append N/A N/A rand choice charset N/A N/A N/A join chars N/A hash_password_function N/A N/A password salt magic N/A None 6 N/A N/A 
    Hashes password using `crypt` function on local machine (which is not harmfull,
    since these hashes are well-specified.

    :param password: Plaintext password to be hashed.
    :type password: :class:`str`
    :param salt: Salt to be used with this password, if None will
        use random password.
    :type salt: :class:`str`
    :param magic: Specifies salt type. Default :data:`6` which means
        use `sha-512`. For all appropriate values refer
        to http://man7.org/linux/man-pages/man3/crypt.3.html#NOTES, or
        (even better) consult `man 3 crypt` on your system.
    :type salt: :class:`str` or :class:`int`

    :return: remote password
     N/A magic N/A str magic N/A N/A salt None N/A N/A salt N/A random_salt_function N/A salt N/A N/A ${magic}${salt} format magic magic salt salt N/A N/A N/A crypt crypt password salt N/A