| |
| | LWN: Protect Your Source Code: Obfuscation 101 (O'ReillyNet) |
 | | The best way to actually obfuscate something like Java or C is to simply ensure that the compiler does as much optimisation as possible, and that where names "leak" from the source into the object code, they get renamed to something less useful. |
 | | I find that even well-written code, but written by somebody else (where "me a year ago" counts as "somebody else"), is often hard enough to grok that for minor and medium sized things, it often makes more sense to rewrite things from scratch rather than to adapt it. |
 | | Another possibility is putting all the compiled code in an archive, encrypt it, and write a small C wrapper that loads the archive in memory, decrypts it and runs it (either in the Java/Python interpreter, or directly as a native executable). |
| lwn.net /Articles/131436 (2308 words) |
|