(username, password)
return username + ":" + hashed_password
Generate hashed HTTP basic auth from traefik_api username+password
Generate hashed HTTP basic auth from traefik_api username+password
Generate hashed HTTP basic auth from traefik_api username + password
def compute_basic_auth(username, password):
    """Generate hashed HTTP basic auth from traefik_api username+password"""
    ht = HtpasswdFile()
    # generate htpassword
    ht.set_password(username, password)
    hashed_password = str(ht.to_string()).split(":")[1][:-3]
    return username + ":" + hashed_password
def compute_basic_auth ( username , password ) : ht = HtpasswdFile ( ) # generate htpassword ht . set_password ( username , password ) hashed_password = str ( ht . to_string ( ) ) . split ( ":" ) [ 1 ] [ : - 3 ] return username + ":" + hashed_password