How can I store text in java in unreadable format and how can I retrieve it back? I mean The saved file should be as XYZ.fcx (or any format) Which is not readable. Don't suggest me to simply change the extension of file. I'm doing project So please give your comments fast. thank you!
Asked
Active
Viewed 640 times
-5
-
1Unreadable on what platform? and to whom? More detail please – brianlmerritt May 27 '16 at 06:54
-
1Ureadable for someone opening the file? Or for someone whoe really ones to read it? If the first one you could serialize it and save it, if the second one, you need to encrypt it. – Aimnox May 27 '16 at 06:57
-
Unreadable for a simple user on any platform. Suppose on Windows Platform. Doll.txt is readable but I want to save my files in Some Other format which would not understandable for simple users. – Anshu kumar May 27 '16 at 07:00
-
try googling something about encryption. Fast. – J. Chomel May 27 '16 at 07:06
1 Answers
2
Encrypt your data in the file for example with AES.
You can look it up here: How to encrypt String in Java
Just chaning the file extension may not help because you can force to open the file in a text editor. In my optinion encryption is the savest way