Click here to Skip to main content
15,904,153 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi
how can I create access for my file formats (like .xyz) so only my application can open it .

I do not want use Encrypt .

regards

[Removed non-sense shouting]
Posted
Updated 28-Jul-10 3:51am
v2

As far as I am aware you can't do that (if I have correctly understood your question): any file can be opened by, for instance, a text editor or the like. The only way to secure the content of the file would be to encrypt or obfuscate that content in some fashion.
 
Share this answer
 
You can't.
I will always be able to open the file with a hex editor at the very least.
Encrypt it ("The Sensible Method"). Use a hard-to-understand file format ("The Corel Method"). Change the format every other week ("The Microsoft Method").
But don't expect any of these to be completely unbreakable - people can still look at your code and reverse engineer the data from that.
 
Share this answer
 
Comments
Fullmm 28-Jul-10 6:54am    
people can still look at your code and reverse engineer the data from that :

yes , that is why I do not want encryption . Also I use C# , so codes can be easily read .
you said:

Fullmm wrote:
people can still look at your code and reverse engineer the data from that :

yes , that is why I do not want encryption . Also I use C# , so codes can be easily read


Well, the majority of people won't have a clue how to do that. But the majority of people know how to open a file in a TextEditor.

There is no foolproof way to secure a file. The only thing that you can do is to make it as hard as possible so the fewest number of people can mess with it.

Personally, I have an application with an Access backend and for the majority of users, just changing the extension makes it so that they don't know how to open it and I leave it at that.

If I wanted it more secure, I would encrpyt it.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900