Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to encrypt the http request sent to server?

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...

like image 608
Ved Avatar asked Dec 05 '22 19:12

Ved


2 Answers

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

like image 104
James Hill Avatar answered Dec 07 '22 07:12

James Hill


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.

like image 40
nfechner Avatar answered Dec 07 '22 07:12

nfechner