Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

When and how should I obfuscate my Delphi code?

What should I know about code obfuscation in Delphi?

Should I or shouldn't I do it?

How it is done and is there any good tools (commercial/free) to automate it?

like image 774
JustMe Avatar asked Jun 03 '11 09:06

JustMe


2 Answers

Why would you need to?

As a whole Delphi does not decompile back, unlike .net, so, while decompilation is always a bit of a risk, Ive never found a decompiler that actually did it to a useful way, lots of areas got left as assembler and so on.

If people want to rework your work, they can, no matter what, obfuscation or not, heck, some coders write almost naturally obfuscated code (having worked with a few)

My vote therefore, is shouldnt bother. Unless someone can show me a decompiler for delphi that really works, and produces full sets of compilable, and all delphi where it was originally, I wouldnt worry one drop.

like image 189
BugFinder Avatar answered Oct 05 '22 23:10

BugFinder


Pythia is a program that can obfuscate binaries (not the source) created with Delphi or C++ Builder. Source code for Pythia is here.

Before:enter image description here

After: enter image description here

like image 42
Mick Avatar answered Oct 06 '22 00:10

Mick