开发者

how to protect application files from being modified?

i have an windows applicat开发者_如何学JAVAion that i have made by visual studio 2008.this application uses some graphical files such as jpeg.i make a setup for this appreciation but i worry about such files being modified by client.would you please help me how to protect those files ?


To detect such a tampering you should add your graphical files as resource within your application (or load from another assembly) and use Strong-Name signing. Even if it is not completely secure, it should prevent the most ones from altering your resource files.


You could embed the images into resource files that get included in the exe.


The easiest way is to use the images as a resource.

If you don't want to do that for any reason, then you could also calculate a cypher of the jpegs (maybe MD5) and check them against the one you previously stored in the code while loading the load program (form.load or whatever).


You could sign your files this way no one would be able to change the files without having your certificate.

this might be overkill and it depends on how mutch security you want else just place the images as resources.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜