Please note that as of October 24, 2014, the Nokia Developer Wiki will no longer be accepting user contributions, including new entries, edits and comments, as we begin transitioning to our new home, in the Windows Phone Development Wiki. We plan to move over the majority of the existing entries over the next few weeks. Thanks for all your past and future contributions.
Obfuscation refers to "the deliberate act of non destructively changing either the source code of a computer program or machine code when the program is in some compiled or binary form, so that it is not easy to understand or read."
The use of an obfuscator for obfuscation is an integral part of the code optimization & security of the source code.
What does the obfuscator do?
- Reduces the code size
- Removes unwanted code
- Replaces large variable names with shorter ones
- Changes the code such it will not be understood by a 3rd person
The mainly used obfuscators for Java ME are
Proguard It is available as opensource, Proguard is the widely used obfuscator for Java ME. ProGuard is a free Java class file shrinker, optimizer, and obfuscator. It removes unused classes, fields, methods, and attributes. It then optimizes the bytecode. It then renames the remaining classes, fields, and methods using short meaningless names.
Retroguard. RetroGuard is a general purpose obfuscator for Java bytecode, designed to be integrated into your build and test process, providing security for your valuable Java applets and applications.