An unreadable file?
#1
Posted 15 April 2013 - 01:01 AM
I have a question about creating files which are unreadable to humans, but not code.
I need to create a file for a user with their details into a folder, but I need that file to be unreadable to humans and not java.
Is this possible in any way?
I have seen some files that have some weird characters like blocks, which is so you can't read what's inside it. But how can I do this?
I'm wanting to do this in Java for saving details of a user.
I'm busy googling now, If i find anything I'll post it here
#2
Posted 15 April 2013 - 01:04 AM
The 'weird character like blocks' are the program attempting to read and display the binary file in text mode, good programs that can read binary files will show it as a hex dump.
#3
Posted 15 April 2013 - 01:59 AM
theoriginalbit, on 15 April 2013 - 01:04 AM, said:
The 'weird character like blocks' are the program attempting to read and display the binary file in text mode, good programs that can read binary files will show it as a hex dump.
Ah, that's what it is.
Hmm, will this work because this is what it's going to do:
It will save the password into the file but the program needs to read the binary to use it to connect to server.
Can it go from binary to normal text?
#4
Posted 15 April 2013 - 02:27 AM
#5
Posted 15 April 2013 - 03:14 AM
#6
Posted 15 April 2013 - 03:24 AM
#7
Posted 15 April 2013 - 03:37 AM
theoriginalbit, on 15 April 2013 - 03:24 AM, said:
bit shift dosent loose data, you just wrap the bits
XOR isnt easy to reverse, you will have to know the string you XORed it with
the purpose is to make it unreadable by human, not encrypt it
#9
Posted 15 April 2013 - 05:42 AM
theoriginalbit, on 15 April 2013 - 02:27 AM, said:
There won't be a password in the file, just an example.
The file would also have custom settings for the user which I would prefer not to be tampered with, although if the file turns out corrupt I could reset the file but I wouldn't want this to happen.
I have a program, TopazChat, that connects to online Warcraft III servers which saves the users' data inside a file. But these files cannot be opened or even SEEN.
You can only see the files when you do ctrl+o, to open a file of settings, within the program. Going to the location of where they are shows up blank.
I can't figure that out xD
Should have mentioned that it needs to be read over and over, so encryption is a no-no?
#10
Posted 15 April 2013 - 06:17 AM
if hash(input) == password then end
#12
Posted 15 April 2013 - 08:26 AM
wilcomega, on 15 April 2013 - 06:17 AM, said:
if hash(input) == password then end
Not lua, java!
Sammich Lord, on 15 April 2013 - 06:30 AM, said:
Well if I can't find any way to do what I want. I'll just hash the password and leave everything else is.
Then on startup, detect if the file has been changed or corrupt and then reset the file.
How's the design going btw?
#13
Posted 15 April 2013 - 11:03 AM
Its unreadable, and easy to get back at.
Another solution will be:
You have an array of 26 ints, those random ints represent the letter and since you compile it no one will ever now.... If they dont know how to decompile it though...
#14
Posted 16 April 2013 - 01:59 AM
Hmm, I don't know. Might use your solution 2, sounds reasonable because only the program will have the array.
#15
#16
Posted 16 April 2013 - 09:36 AM
#18
Posted 16 April 2013 - 03:22 PM
PixelToast, on 16 April 2013 - 04:13 AM, said:
10011101 shifted right will turn into 100110
1 user(s) are reading this topic
0 members, 1 guests, 0 anonymous users











