Solved

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

Posted on 2004-10-09
3
269 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 70 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 55 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

The uses clause is one of those things that just tends to grow and grow. Most of the time this is in the main form, as it's from this form that all others are called. If you have a big application (including many forms), the uses clause in the in…
In my programming career I have only very rarely run into situations where operator overloading would be of any use in my work.  Normally those situations involved math with either overly large numbers (hundreds of thousands of digits or accuracy re…
This video shows how to remove a single email address from the Outlook 2010 Auto Suggestion memory. NOTE: For Outlook 2016 and 2013 perform the exact same steps. Open a new email: Click the New email button in Outlook. Start typing the address: …
I designed this idea while studying technology in the classroom.  This is a semester long project.  Students are asked to take photographs on a specific topic which they find meaningful, it can be a place or situation such as travel or homelessness.…

930 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

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now