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.

N2022
  • 1
  • 2
  • HTTPS is not enough? – vinkomlacic Oct 11 '22 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 – N2022 Oct 12 '22 at 04:15

1 Answers1

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?

Mohamed ElKalioby
  • 1,908
  • 1
  • 12
  • 13