import hashlib


def generate_token(login: str, auth_salt: str) -> str:
    """Generate token based on login and hash salt."""
    encoded_key = (login + auth_salt).encode('utf-8')
    token = hashlib.sha512(encoded_key).hexdigest()
    return token