Sunday, December 27, 2009

Obfuscation coding?

gimme some ques based on obfuscated codingObfuscation coding?
If you're using c++, some easy tricks are the following:





-Name variables and functions as different lengths of underscore


....';int __;';


-Use preprocessor statements to redefine common parts of the language.


....';#define wqoidjwqoidjwqoijd main';


....';int wqoidjwqoidjwqoijd';


-Use preprocessor statements to redefine preprocessor redefinitions.


-Do things in odd ways, use unnecessary variables, extra loops, etc.Obfuscation coding?
I don't like it. You have to maintain a base of clean source code and a base of obfuscated. Maintenance includes making sure the code runs in both modes.





Rather, I like code (if this is for my own satisfcation, not for contract work) that is outside the realm of textbook stuff. The superstars of code use one language to drive another language, and that is my ideal.





There are plenty of obfuscation frameworks out there. Truly, don't pay for one. Get a free one somewhere by just googling.

No comments:

Post a Comment