FRIHOSTFORUMSFAQTOSBLOGSDIRECTORY
You are invited to Log in or Register a Frihost Account!

Java - Storing data in a file

 


NGRU-Kamikazie
Hey,

How do I store data from a program into a file so it can be re read at the program initiation? The file cant be read by anyone as it would contain passwords in it. I know how to export using EasyWriter to a file, but it comes out as a .txt and can be opened in any text editor, is there a different format to which can onlybe read by the program or a way to actually store it in the .class file it self?
qbawler311
Sounds like you want to encrypt output files: try this on

http://www.orlingrabbe.com/javacrypt_index.htm
Reign
You can do alot with serialisation. The object will be serialized into unreadable text. You can still view the text on the other hand but not many people will be able to make something out of it... I'm actually starting to doubt if this is what you want?

more info here: http://mindprod.com/jgloss/serialization.html
NGRU-Kamikazie
Thanks Reigh, the first one was more of what I neede das it would be perstant data.
Nyizsa
Also you may try to store the hashes of the passwords as normal text. If it's good enough for operating systems...
Reply to topic    Frihost Forum Index -> Scripting -> Others

FRIHOST HOME | FAQ | TOS | ABOUT US | CONTACT US | SITE MAP
© 2005-2007 Frihost, forums powered by phpBB.