By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
454,381 Members | 1,573 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 454,381 IT Pros & Developers. It's quick & easy.

How protect executable by resource editing?

P: n/a
Hi!
I have meke a simple programs on c++ with visual studio.
The program have a dll where I put my name e my personal details.
I realize that anybody can take my executable file and with a simpli
resource editor can be edit, delete or replace my details with other data.

How can block this possibility? How can prevent the resource editing? It's
possible?

Thanks.

May 28 '07 #1
Share this Question
Share on Google+
4 Replies


P: n/a
On 5月28日, 下午7时44分, "ovatta" <ova...@libero.itwrote:
Hi!
I have meke a simple programs on c++ with visual studio.
The program have a dll where I put my name e my personal details.
I realize that anybody can take my executable file and with a simpli
resource editor can be edit, delete or replace my details with other data.

How can block this possibility? How can prevent the resource editing? It's
possible?

Thanks.
You can encrypt the personal details and put the encrypted string into
executable. You program then decrypt the encrypted information when
need.

May 28 '07 #2

P: n/a
On 28 Maj, 13:44, "ovatta" <ova...@libero.itwrote:
Hi!
I have meke a simple programs on c++ with visual studio.
The program have a dll where I put my name e my personal details.
I realize that anybody can take my executable file and with a simpli
resource editor can be edit, delete or replace my details with other data.

How can block this possibility? How can prevent the resource editing? It's
possible?
Calculate a checksum of the program that is checked in all/most
functions in the DLL and if the checksum does not match then crash the
program.

Seriously though, why would you worry about that? I find it less than
likely that someone would actually try to steal your work and pass it
of as their own (I assume here that by personal information you mean
copyright information, if it's something else it should not be in the
file to start with).

--
Erik Wikstr鰉

May 28 '07 #3

P: n/a

"Erik Wikstr鰉" <er****@student.chalmers.sewrote in...On 28 Maj, 13:44,
"ovatta" <ova...@libero.itwrote:
>Calculate a checksum of the program that is checked in all/most
functions in the DLL and if the checksum does not match then crash the
program.
Thanks! This is a great idea!! Now I try it!! Thanks so much!
>Seriously though, why would you worry about that? I find it less than
likely that someone would actually try to steal your work and pass it
of as their own (I assume here that by personal information you mean
copyright information, if it's something else it should not be in the
file to start with).
Yes, this is my foible. But shortly I would like to put my programs on
internet, how free programs, and my only request is that my programs remain
unchanged.

Thank for your help!


May 28 '07 #4

P: n/a
ovatta wrote:
"Erik Wikstr鰉" <er****@student.chalmers.sewrote in...On 28 Maj, 13:44,
"ovatta" <ova...@libero.itwrote:
>Calculate a checksum of the program that is checked in all/most
functions in the DLL and if the checksum does not match then crash the
program.

Thanks! This is a great idea!! Now I try it!! Thanks so much!
>Seriously though, why would you worry about that? I find it less than
likely that someone would actually try to steal your work and pass it
of as their own (I assume here that by personal information you mean
copyright information, if it's something else it should not be in the
file to start with).

Yes, this is my foible. But shortly I would like to put my programs on
internet, how free programs, and my only request is that my programs remain
unchanged.

Thank for your help!
Don't waste your time "protecting" against this. Focus on the fact that
the honest users will honor your request to not change things. The
honest users are the majority.

The *only* two ways to keep someone in the non-honest minority from
changing your program without asking are:

1) Don't release your program or
2) Make your program completely undesirable
May 28 '07 #5

This discussion thread is closed

Replies have been disabled for this discussion.