store string as human unreadable formet ?.

hello,

for my application, I will get the input from user through JPassword field.

I need to store it in a separate file. For security reasons, I don't want to store it as a string actual formet (eg. "India').

i want to store it as some different binary format and when I requires, i want to retrive the original string value.

How can I do it.

[376 byte] By [rameshsa] at [2007-11-26 16:40:53]
# 1
Preferences.userNodeForPackage(this.class).get("password", "defaultvalue");not sure if that is what you want?
Nibura at 2007-7-8 23:07:50 > top of Java-index,Desktop,Core GUI APIs...
# 2
hi,store a string value into file has a bytestrream, store the value in preferences(as Nibur told) which will store in registry of windows.thanksdaya
dayanandabva at 2007-7-8 23:07:50 > top of Java-index,Desktop,Core GUI APIs...
# 3
Have you considered using the encrypt-decrypt of java?I've had the same problem at some point and I've created a Class that we input a String and it outputs it using DESede.Try it..
nir9a at 2007-7-8 23:07:50 > top of Java-index,Desktop,Core GUI APIs...
# 4
the point is if you are encrypting it using java cant they just us the same code to get the password? but i dont think this is for a bank or any thing..... you could hash it though?
Nibura at 2007-7-8 23:07:50 > top of Java-index,Desktop,Core GUI APIs...
# 5
hello nibur,I have some doubts. Which import package can use for your reference/.any other methods for string encrypt in java?.please send me any links.thank you.
rameshsa at 2007-7-8 23:07:50 > top of Java-index,Desktop,Core GUI APIs...