def create_hash(userpwd):
    if not settings.HMAC_KEYS:
        raise ImportError('settings.HMAC_KEYS must not be empty. Read the '
                          'django_sha2 docs!')
    latest_key_id = max(settings.HMAC_KEYS.keys())
    shared_key = settings.HMAC_KEYS[latest_key_id]

    return ''.join((
        'bcrypt', _bcrypt_create(_hmac_create(userpwd, shared_key)),
        '$', latest_key_id))
cut out data area based on coords.
dataset/ETHPy150Open fwenzel/django-sha2/django_sha2/bcrypt_auth.py/create_hash--crossover with--dataset/ETHPy150Open ejeschke/ginga/ginga/BaseImage.py/BaseImage.cutout_data