

def generate_sha512_hmac(password_salt, password):
    ' Generate SHA512 HMAC -- for compatibility with Flask-Security '
    return base64.b64encode(hmac.new(password_salt, password_salt.encode('utf-8'), hashlib.sha512).digest())

dataset/ETHPy150Open lingthio/Flask-User/flask_user/passwords.py generate_sha512_hmac/VarMisuse@25/56 `password`->`password_salt`