def generate_sha512_hmac(password_salt, password):
    return base64.b64encode(hmac.new(password_salt, password.encode('utf-8'), hashlib.sha512).digest())
Generate SHA512 HMAC -- for compatibility with Flask-Security
dataset/ETHPy150Open lingthio/Flask-User/flask_user/passwords.py/generate_sha512_hmac