R
R
rshruslan2020-09-08 21:19:08
PHP
rshruslan, 2020-09-08 21:19:08

How to encrypt response from get requests?

How to encrypt response from requests?
At the moment, if you get into the network, you can see the answer, there is all the data about the goods (price, category, etc.)
On another side in this form (photo)
5f57cae69fda2895642426.png
Is it somehow parsed at the front and it turns out in a normal form?
Perhaps somehow it is possible, for example, to simply encrypt an object on the back, and decrypt it at the front?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
N
nokimaro, 2020-09-09
@nokimaro

You can encrypt responses with any cryptographic algorithm, such as AES
https://github.com/mwiesmueller/express-crypto
https://codeforgeek.com/encrypt-and-decrypt-data-i...
On the client, the response after receiving first decrypt and then use as usual in
JSON.parse and so on.
The usefulness of such encryption or additional. security tends to zero, since an attacker with 100% probability will be able to decrypt the answer, but in the network, of course, everything will come in encrypted form.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question