def _hmac_create(userpwd, shared_key):
    hmac_value = base64.b64encode(hmac.new(
        smart_str(shared_key), smart_str(userpwd), hashlib.sha512).digest())
    return hmac_value
Create HMAC value based on pwd and system-local and per-user salt.
dataset/ETHPy150Open fwenzel/django-sha2/django_sha2/bcrypt_auth.py/_hmac_create