Answer the question
In order to leave comments, you need to log in
Is it possible to somehow encrypt the data with an API key between react.js and laravel?
There is a site on laravel + react.js. It fully works on ajax requests.
the front is going to webpack;
Is there any way to encrypt the data with a key?
Answer the question
In order to leave comments, you need to log in
It is possible, and with the same success it will be possible to decrypt in the browser if that.
Two options:
1. Protection against wiretapping: the session is encrypted in advance (mail, sms) and the key to work with data, tied to the session key , is transmitted along with this data, encrypted with the same key.
2. Protection against the use of stored data by the owner of the storage (service): The key is stored locally by the content creator user. The server only stores encrypted data and does not know what is in it.
Yes, it's not a problem. For what purpose.
First of all, you need to use https - this will generally protect traffic to the site from sniffers.
You can encrypt on the server using some aes or any other algorithm, encrypt the response on the server, and decrypt it in js on the client. That's just the key in the browser can be obtained by having access to it, so it won't work at all.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question