title: How to hide arguments from a java process?
body: <p>I want to hide arguments (password paraphrase) from a running java process (can be seen from command line).</p>
  
  <p>For example, when i type jps -m on cmd, it shows me all the java processes along with their arguments:</p>
  
  <p>Output after running jps -m: 6120 someproject.jar -password</p>
  
  <p>where 6210 is pid.</p>
  
  <p>I need that password to run java process. The problem is if my machine is compromised, someone could read password and can do further damage.</p>
  
  <p>One solution could be storing password in a file locally. But still someone can get it if machine is compromised.</p>
  
  <p>Any ideas how i proceed ?</p>
  
  <p>Thanks in advance.</p>
  
  <p>update1: The password is hashed but still i want it to hide.</p>