Reputation: 19
In what situations is it needed to encrypt the REST API HttpRequest at the client-side before sending it to the server and to encrypt the HttpResponse at the server before sending it to the client-side?
I read that HTTPS encrypts the data when data is in transit, so do we really need an extra layer of encryption on our own?
One difference I could notice that using additional encryption I will not be able to see the data in the original form in the Network tab of the browser. What is the significance of this from a security perspective?
Please consider the question for both mobile and web platforms.
Upvotes: 1
Views: 2426
Reputation: 1
General purpose: to avoid stealing(scraping) data client-side (e.g. with Network tab of the browser etc.), not only in transit (this well done by SSL)
To encrypt small requests
To encrypt small responses
To encrypt big requests
To encrypt big responses
due to open nature of js in browser it is possible to get js code and repeat approach and then decrypt data -so some additional locks are required:
Useful links:
Upvotes: -1