Friday, October 10, 2008

Obfuscate your code to protect software

Sometimes you want to obfuscate your code to protect your software, for example, protecting the serial number in your software. If you are using something like:

if (registrykey !=”3F5HFA43...”)

{

showDialogue(“wrong serial number”);

}

The cracker can find your serial number “3F5HFA43....” easily. An idea is to hide the data into algorithm, for example, the algorithm to search path in the maze:

If (registrykey!=mazPathFind())

//…

This will make the cracking harder.

No comments: