473,779 Members | 1,862 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

How protect executable by resource editing?

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
4 2343
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
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öm

May 28 '07 #3

"Erik Wikström" <er****@student .chalmers.sewro te 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
ovatta wrote:
"Erik Wikström" <er****@student .chalmers.sewro te 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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
1793
by: Ola Theander | last post by:
Dear subscribers I'm currently creating a small application that will run at the end of a web installation to configure a SQL Server. For this task I have a SQL batch file in the same format as SQL Query Analyzer uses. I would prefer not to merge the content of this file into the source code of configuration application but instead keep the SQL commands in a text file included in the executable, pretty much like resource data, for...
19
3020
by: Peter | last post by:
I wrote a dll and now I want to protect from mass distribution. What is the most COST software for doing this, or can it easily be done in vb.net.
3
4103
by: SpIcH | last post by:
Hi All, This is all about protecting my data in Executable file. I have developed a program in Visual Basic .NET 2002. I have many questions in mind... please help me to complete my project. 1. I have very much data to be incorporated into the executable file. I have to add much data into my developed program into 2 Combo Boxes and 1 List Box control. For that i have created an xml element with all of the
1
2116
by: Terry Olsen | last post by:
Ok, now that I've got my disk imager program working, I'd like to attach a "self-extractor" to the front end of the image file and make it a self-extracting disk image executable file. The idea being that the user would double-click on the file and the disk would be created. I would like to be able to "create" the self-extracting disk image from my program. Any guidance on how to go about doing this? thanks.
2
2650
by: Oleg Subachev | last post by:
I need to add binary data to C# executable and then read it back during execution or from another application. In Delphi for Win32 I used the following: - created binary Win32 resource with needed data; - linked this resource with executable through {$RESOURCE <filename>} directive; - during execution I used TResourceStream to read binary data; - from another application I used LoadLibraryEx/EnumResourceNames/FindResource/
34
2988
by: priyanka | last post by:
Hi, I was wondering if we could parse or do something in the executable( whose source language was C). How can I use some scripting language like perl/python to find out the information about the executable ? Is it possible ? Also, how does the compiler add inling to the program ? I know that whenever it sees"inline" in front of the procedure name, it inlines it. But if we give the -finline options, it inline all the procedures ? How
3
7255
by: Mo | last post by:
Hi, Is there a way to include an executable (xxx.exe) file inside a c# console project so that the resulting project binary have only one final executable file? My c# console application is calling another Executable (exe) which I am trying to include in my project so I can only have one file for the executable. Any ideas? Mo
38
2896
by: farsheed | last post by:
I wrote a software and I want to protect it so can not be cracked easily. I wrote it in python and compile it using py2exe. what is the best way in your opinion?
6
1654
by: =?Utf-8?B?Q2hhcmxlcyBS?= | last post by:
I have two different executables that I want to build w/ the same source but in 2 different compilers, vs60 and vs2008. I have 2 different configurations w/ different options etc, but I want one to be version 1.0 and another 3.0. Anyway to do this easily using the same .rc file? I couldnt figure how to use the condition property of the VERSION. I did this years ago, but forgot. I tried defining a condition parameter, then adding it to...
0
9636
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
10306
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
10074
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9930
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
8961
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7485
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6724
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5503
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4037
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.