Skip to content

Encoding

hash_password(password: str) -> str

Hashes the password for further requests.

Parameters:

Name Type Description Default
password str

The password to hash.

required

Returns:

Type Description
str

The hashed password.

Source code in gd/encoding.py
362
363
364
365
366
367
368
369
370
371
def hash_password(password: str) -> str:
    """Hashes the password for further requests.

    Arguments:
        password: The password to hash.

    Returns:
        The hashed password.
    """
    return sha1_string_with_salt(password, Salt.PASSWORD)