Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Java Development

Reply
Developer
Posts: 209
Registered: ‎11-08-2008
My Device: Not Specified

Ho can i obfuscate ?

Hi All,

I want to obfuscate my code.How can i do that ?

And the second thing how can i obfusticate with more complexity, so that no one can de-obfuscate it with any tools ?

 

Please provide some ides,it will be a great help.

 

Thanks and Regards,

Thanks and Regards
Developer
Posts: 19,636
Registered: ‎07-14-2008
My Device: Not Specified

Re: Ho can i obfuscate ?

I recommend searching the KB and the forum at least, before asking a question. 

 

There are many useful Threads on obfuscation on this forum, and there is this article in the KB.

How To - Obfuscate code in a BlackBerry application
Article Number: DB-00438
http://www.blackberry.com/knowledgecenterpublic/livelink.exe/fetch/2000/348583/800901/How_To_-_Obfus...

Developer
Posts: 209
Registered: ‎11-08-2008
My Device: Not Specified

Re: Ho can i obfuscate ?

Hi all,

Thanks Peter...

This link was really helpfull...

But few of the classes are not obfuscating...

Not even a single variable are not obfuscating.

Infact only 50% of the classes are obfuscating...

Please tell how can i obfuscate all of those classes...

Thanks and Regards
Developer
Posts: 19,636
Registered: ‎07-14-2008
My Device: Not Specified

Re: Ho can I obfuscate ?

Are you actually using an obfuscator or just the RIM standard code optimization?

 

Never used an obfuscator myself.  If you are using one, perhaps you should ask the people who make your obfuscator why it is not working?  If you tell us what you are using, perhaps someone else has tried it and knows the answer.  

Developer
Posts: 1,807
Registered: ‎04-28-2009
My Device: Z10 (STL100-4)-10.3.2.858, Z10 (STL100-3)-10.3.1.2576, Z30 (STA100-5)-10.3.1.2582, Passport (SQW100-1)-10.3.1.2576, PlayBook (16GB)-2.1.0.1917
My Carrier: Verizon

Re: Ho can I obfuscate ?

Obfuscators don't obfuscate public classes/interfaces.

---Spends time in #blackberrydev on freenode (IRC)----
Three simple rules:
1. Please use the search bar before making new posts.
2. "Like" posts that you find helpful.
3. If a solution has been found for your post, mark it as solved.
--I code too much. Well, too bad.
Developer
Posts: 1,041
Registered: ‎07-16-2008
My Device: ಠ_ಠ

Re: Ho can i obfuscate ?

If you want to try a secondary obfuscator, you can check out proguard.

http://proguard.sourceforge.net

Regular Contributor
Posts: 67
Registered: ‎09-30-2009
My Device: Not Specified

Re: Ho can i obfuscate ?

Hi, Mudassir

 

Which tool did you use to obfuscate?

New Developer
Posts: 35
Registered: ‎12-22-2009
My Device: Bold 9700

Re: Ho can i obfuscate ?

Most BlackBerry developers don't use external obfuscation packages since JDE already provides basic obfuscation when generatin COD files. If you search around you will find RIM itself is not performing additional obfuscation to its own products.

-------------
Rodrigo Bravo
http://www.wilkonit.com
Highlighted
Developer
Posts: 1,305
Registered: ‎01-21-2009
My Device: Not Specified

Re: Ho can i obfuscate ?


Mudassir wrote:

And the second thing how can i obfusticate with more complexity, so that no one can de-obfuscate it with any tools ?


That's an impossible goal. The best you can hope for is that the effort required to de-obfuscate using commonly available tools is a reasonable deterrent. After all, a JVM has to be able to read and execute the byte codes, and a determined hacker will be able to de-obfuscate (or at least reverse engineer) using an instrumented JVM.

 

I've posted this before: relying on the secrecy of your code is always going to be a weak form of protection. Much better is to design an application architecture and security protocols that move critical security elements onto a well-managed server, where they will be reasonably out of reach of potential attackers.




Solved? click "Accept as solution". Helpful? give kudos by clicking on the star.