Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

how to prevent other programs from decompiling the dfm-file!

Posted on 2004-10-09
3
Medium Priority
?
287 Views
Last Modified: 2012-05-05
Hi, there is many tools on the net that can decompile the dfm-file which is embedded in my program. How can i prevent these tools from decompiling the dfm-file?
0
Comment
Question by:din345
3 Comments
 
LVL 12

Expert Comment

by:esoftbg
ID: 12266323
I don't understand: .dfm is just a text file. Into the .dfm file Delphi describes all the VCL components (with all the properties) you drop on the form ....
Compiler makes .dcu files and linker creates .exe file
What is possible to be decompiled is .exe (and may be .dcu ....).
0
 
LVL 13

Accepted Solution

by:
BlackTigerX earned 280 total points
ID: 12267343
what he is talking about is programs like "DeDe", that can take a Delphi executable and get all the Forms components that were used to write the Delphi program

one solution would be... to NOT use the visual designer!... of course that would defeat the purpose of using Delphi wonderful IDE in the first place
but there are products that convert all of your components in your form, to dinamically generated components, and it would be the same thing
so you would work normally with your program, and when you are ready to deploy it, use the tool to scramble the Delphi code and you're done...

see this link for an example of such product
http://www.billeniumsoft.com/?ctdph
0
 
LVL 17

Assisted Solution

by:Wim ten Brink
Wim ten Brink earned 220 total points
ID: 12272103
There are tools like AsPack and AsProtect (http://www.aspack.com) that will compless your executables and thus make it harder for tools to decompile your projects, but it doesn't make it impossible to decompile them. To be honest, there is absolutely NO way to prevent hackers to view the resources you've hidden in your executable. All you can do is just make things more difficult. Creating forms dynamically in runtime would be a good option but it does require a lot of work to maintain.

The best solution is to not store sensitive data in your DFM files. Store them in a separate file that you can encrypt and perhaps even include in your executable by including it in a *.rc file and add the *.rc file to your project. This way it is still possible for hackers to get the sensitive data but they have to decrypt it too. Since many hackers will first focus their attention to the forms themselves, it does take them a while to crack the system.
And if your EXE is compressed itself too by e.g. AsPack then it becomes even more difficult. Not impossible, though. It can always be cracked. But it will delay the hackers a bit more. Thus, a very experienced hacker would need two days instead of one to crack your code. ;-)
And yes, experienced hackers can crack any system quite fast.
0

Featured Post

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Hello everybody This Article will show you how to validate number with TEdit control, What's the TEdit control? TEdit is a standard Windows edit control on a form, it allows to user to write, read and copy/paste single line of text. Usua…
Introduction Raise your hands if you were as upset with FireMonkey as I was when I discovered that there was no TListview.  I use TListView in almost all of my applications I've written, and I was not going to compromise by resorting to TStringGrid…
Want to learn how to record your desktop screen without having to use an outside camera. Click on this video and learn how to use the cool google extension called "Screencastify"! Step 1: Open a new google tab Step 2: Go to the left hand upper corn…
In response to a need for security and privacy, and to continue fostering an environment members can turn to for support, solutions, and education, Experts Exchange has created anonymous question capabilities. This new feature is available to our Pr…
Suggested Courses

885 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question