How to encrypt the http request sent to server?

2020-04-14 00:47发布

Is it possible to hide the contents (or encrypt it) of an HTTP request so that no other than authorize person can view it ?? For example, if one user is just submitting a data to in Login page even if using the http post, then also it is possible to see the contents like username and password which are contained in request headers in firebug kind of tools.

I know that encryption algorithm at client side may be used but still data goes in HTTP request is visible.

Any solutions ??? Thanks in advance...

3条回答
甜甜的少女心
2楼-- · 2020-04-14 01:08

You must use HTTPS protocol

查看更多
Melony?
3楼-- · 2020-04-14 01:18

The answer depends a lot on the setup you are looking for. If you just want to prevent anyone from listening in on the traffic, use HTTPS for the requests.

If you want to encrypt the data you are sending with a specific password, check out the Stanford Javascript Crypto Library.

查看更多
虎瘦雄心在
4楼-- · 2020-04-14 01:19

The standard method for encrypting web traffic is an SSL certificate. Their use is easily recognized by the https protocol specification. - http://en.wikipedia.org/wiki/Https

SSL Certificates can be purchased easily online. Below are a couple of vendors that I use:

http://www.comodo.com

http://www.verisign.com/ssl/buy-ssl-certificates/index.html

查看更多
登录 后发表回答