0

Django Form fields needs to be encrypted at server side and needs to be decrypted in client browser while rendering and vice versa for form submission

One approach is using JS cryptographic libraries or to use custom encryption code.

But, Is there any python package available which implements this where we use this as django form widget along with js library at client side.

An example will be a package like the django-autocomplete-light package which provides a widget for autocompletion for the particular field.

How to implement this or Is there any package available which can be used.

2
  • HTTPS is not enough? Commented Oct 11, 2022 at 20:08
  • No, it seems using https is not enough for sensitive fields. requirement is that sensitive form fields should be encrypted or scrambled so that they cant be read even if the form submission is intercepted Commented Oct 12, 2022 at 4:15

1 Answer 1

0

JavaScript Web Tokens (JWT) has help you in this, in Python Pyjose can help but the quick, how the JS will receive the keybto encrypt the form data with?

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.