Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
def _get_id(requester, user_id, hash_type):
state = State()
internal_request = InternalRequest(hash_type, requester)
UserIdHasher.save_state(internal_request, state)
return UserIdHasher.hash_id(SALT, user_id, requester, state)