Allamraju Kumarswamy wrote:
> Hi,
>
> Is there any way I can encrypt the data we sent in URL
>
> In the below eg., I want to encrypt the underlined data.
>
> eg: www.mysite.com/index.html?mdata=2345&urdata=5432
> ----------------------------
> Thanks
> Kumar
If this URL is being created as the result of a form being submitted (which is
typically the case), the only way to have the data encrypted when it goes across
the network is to run on top of an encrypted TCP connection using something like
SSL (most browsers, and many servers, support the "https://xxxxx" URL scheme for
this). This technique is commonly used for things like submitting your credit
card number on an order. By the time the parameters get to your servlet,
JSP page, or other program, it has been decrypted already and your app does not
have to worry about it.
NOTE: You can make these parameters not appear in the URL itself if you say
<form method="POST" action="...url...">, but the data is still sent unencrypted
in the message body, and is therefore still visible to anyone who can sniff
packets on the net.
Craig McClanahan
===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
FAQs on JSP can be found at:
http://java.sun.com/products/jsp/faq.html
http://www.esperanto.org.nz/jsp/jspfaq.html