最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

javascript - Is it necessary to encrypt the payload before sending out the post request? - Stack Overflow

programmeradmin0浏览0评论

I'm using angular as my frontend to do a login panel and send a post request to the backend which is a express API. My domain has a SSL already, so the safety between the transfer should be good.

But I'm wondering when I open the devtool and check the request payload, the plaintext of the loginname and password is show up.

Do I need to encrypt the payload before sending post request to make it invisible? If needed, what library I can use for this?

I'm using angular as my frontend to do a login panel and send a post request to the backend which is a express API. My domain has a SSL already, so the safety between the transfer should be good.

But I'm wondering when I open the devtool and check the request payload, the plaintext of the loginname and password is show up.

Do I need to encrypt the payload before sending post request to make it invisible? If needed, what library I can use for this?

Share Improve this question asked Jan 19, 2022 at 3:31 SuspendedSuspended 1812 silver badges13 bronze badges
Add a ment  | 

3 Answers 3

Reset to default 6

No you do not need to encrypt the payload. SSL will do that for you. The payload would be secure between the client and the server.

Devtools can be only opened on the local instance of chrome client. Dev Tools only starts capturing data when it is open and if a request is made. Cannot be used in man-in-the-middle attack.

With the exception of TLS/SSL. You cannot perform secure encryption of payloads on a client, only on a server. Instead you rely on encoding data on the client and then on the server you check to verify the encoded data has not been changed in flight. Take a look at JWTs “json web tokens” for authflows between client and server.

It's not mandatory but if you are dealing with fintech applications then you should encrypt your API payload, for this, you can implement RSA and AES encryption decryption Algorithms.

detail article of encryption decryption.

https://www.mdpi./2673-4591/20/1/14

发布评论

评论列表(0)

  1. 暂无评论