• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

encrypting data

 
jyotsana dang
Ranch Hand
Posts: 135
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i have a search page in jsp where i have given an html link on the names dispplayed:
<a href="my_page.jsp?user_login=#user_login#"> name</a>
user_login is the code of the employee. I wanted to know how do we encrypt this data so that the user_login value is not displayed on the address bar of the next jsp file.
 
Eric Pascarello
author
Rancher
Posts: 15385
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
if you do a search on google you can find a lot of encryption scripts out there.
RSA page: http://oregonstate.edu/dept/honors/makmur/
but if you do not want to show the data and you are submiting the form you should use "post" instead of "get" and the information will not show up in the query string in the first place.
Eric
 
jyotsana dang
Ranch Hand
Posts: 135
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi.. in my search part i have this search jsp page which has a form with name and lastname as the input fields to be searched from. The next jsp page - search_result returns the corresponding names.
<table align="center" border=1 cellspacing=3>
<tr bordercolor="#000000">
<td bgcolor="#FFFFCC"><a href ="my_page.jsp?user_login=09090"><%=fname+" "+lname %></a></td>
<td bgcolor="#FFFFCC"><%=Desg%></td>
</tr>
</table>
i wanted to know when i give a hyperlink to the name the user_login that i have given shouldnt be displayed on the url of the address bar.
is it right to give it like i have given above.
Thanks
 
Eric Pascarello
author
Rancher
Posts: 15385
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The only way it will not diplay in the url is if you use frames, you submit a form to the page that uses the information or you manulally have to make them enter it.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic