FRIHOST FORUMS SEARCH FAQ TOS BLOGS COMPETITIONS
You are invited to Log in or Register a free 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...
Related topics
Ragnarok Online private server...
Need script
What is all the hype about GMail?
I have a question about php
HELP ME BONDINGS!!!!
Fortran Tutorials(77)
StringTokenizer in JAVA and Xsl file
[Java] Top-Down Menu bar tweak.
Lineage II (C4 chronicle)
New organic material for transferring data
Addition to Bonding's Backup Thread
Storing data to previous pages
Problem with a basic form
Outlook data files and profiles in Mac version
Reply to topic    Frihost Forum Index -> Scripting -> Others

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