Where to store password for key store ?

I have primary keys etc stored in java key store and I have hard coded the password for keystore for now but I am thinking to store that password in text file in encrypted form. The architect of my team does not want to store password for keystore in database so now I need two way hashing algo. to store password in text file and then read it back at server start.

Any idea from where I can get two way hashing algo in java ?

Or are there any other better means to store password for key store.

[514 byte] By [namon20a] at [2007-11-27 8:47:14]
# 1
There is no such thing as two way hashing. There is encryption. Plenty of it available in java. Start with javax.crypto.Cipher.
ejpa at 2007-7-12 20:51:40 > top of Java-index,Security,Other Security APIs, Tools, and Issues...