def generate_header(login: str, password: str, coding='utf-8') -> str:
    """Generate Basic Auth header value from login and password
    """
    return 'Basic %s' % generate_token(login, password, coding=coding)
Generate Basic Auth header value from login and password
biliup/web/http_basic_auth.py