Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

save file

 
Bhabani Sankar Mishra
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have to make a file and store some data(string) in it. I want that no one will be able to understand what is written in the file by openning it as txt . like he will get text as ;vnzlghaog\GH;OLFJHQ686596- in the file. So how do I go by doing the data formating. I tried it as is done in C++ by adding numbers to ASCII value of the character, but that gave error in JAVA. Can anyone plz help me with this problem.
 
Christophe Verré
Sheriff
Posts: 14691
16
Eclipse IDE Ubuntu VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Show us your error. Adding numbers to ascci values is possible in Java too.
 
Garrett Rowe
Ranch Hand
Posts: 1296
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
A google search for Java encryption cipher may give you some inspiration.
[ March 30, 2006: Message edited by: Garrett Rowe ]
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic