def _get_key(salt):
    if not salt: salt = ""
    
    return sha256("%s%s" % (settings.SECRET_KEY, salt)).digest()
Combines `settings.SECRET_KEY` with a salt.
dataset/ETHPy150Open mtigas/django-twofactor/django_twofactor/encutil.py/_get_key