comp.lang.java.security
  Home FAQ Contact Sign in
comp.lang.java.security only
 
Advanced search
September 2008
motuwethfrsasuw
1234567 36
891011121314 37
15161718192021 38
22232425262728 39
2930      40
2008
 Jan   Feb   Mar   Apr 
 May   Jun   Jul   Aug 
 Sep   Oct   Nov   Dec 
2008 2007 2006  
total
comp.lang.java.security Profile…
RELATED GROUPS

POPULAR GROUPS

more...

 Up
  passwords, Strings and memory dumps         


Author: Fred
Date: Sep 11, 2008 06:48

Hi everyone,

I'm facing a problem here about password storage in a JVM.
Here's the problem:
An html page sends a login/password to a servlet. This servlet reads the
password through the getParamter method. The getParameter, thus, creates
a String that contains the password in clear text.
I cypher the password and store it for future use.
The problem is that the String that getParameter created is still there
... containing a clear text password. And a memory dump could allow
people to read this password.

My question is : Is there a way to totally discard a String's content
from the JVM's memory?

Thanks for your help.

Fred
7 Comments