title: how to encrypt/encode url parameters in jsp
body: <p>I want to encrypt a URL variable so that the user can't see or modify the information when it is passed in jsp. </p>
  
  <p>This is an example URL:</p>
  
  <pre><code>localhost/somewebpage/name.jsp?id=1234&amp;tname=Employee_March_2013
  </code></pre>
  
  <p>Here I want to encrypt or encode the parameters <code>id</code> and <code>tname</code>.</p>
  
  <p>Could someone please help me write a short script that encodes / encrypts and then decrypts the parameters</p>
  
  <p><strong>EDIT:</strong><br>
  I am sending this url as a attachment in email... when receiver clicks on this link their payslip information will displayed on the web page'</p>