def encrypted_json_post(view_func):
    def inner(request, *args, **kwargs):
        try:
            decrypted_body = rsa_decrypt(request.body, SERVER_KEY)
            request.decrypted_json = json.loads(decrypted_body)
            return view_func(request, *args, **kwargs)
        except __HOLE__:
            msg = ("This endpoint expects a JSON object, "
                   "encrypted with the server's public RSA key")
            return HttpResponseBadRequest(msg)
    return csrf_exempt(require_POST(inner))
dataset/ETHPy150Open teddziuba/pqauth/python/pqauth/pqauth_django_server/views.py/encrypted_json_post