Babak Fakhriloo
Babak Fakhriloo

Reputation: 2126

how to protect application files from being modified?

i have an windows application 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 ?

Upvotes: 1

Views: 2294

Answers (4)

Peter
Peter

Reputation: 38515

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.

Upvotes: 1

Bjoern
Bjoern

Reputation: 16304

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).

Upvotes: 1

Oliver
Oliver

Reputation: 45109

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.

Upvotes: 8

Mark Redman
Mark Redman

Reputation: 24535

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

Upvotes: 2

Related Questions