In my android application, i want to generate a random number which follows some rules. I write that method in a class and I don't want the users to see my formula. I am obfuscating my application, but some how by reverse engineering, we can see the methods and classes. How to prevent that class from getting reverse engineered. Once it is obfuscated even i also don't want to open those file. I just call that method from my application.
2
-
As Ori Lentz stated you could have a server sided calculation, would this be acceptable solution for your program, or does it need offline support?CodeCamper– CodeCamper2015-03-26 19:24:45 +00:00Commented Mar 26, 2015 at 19:24
-
No i didnt use any server side codes. I just want to do it in native APK itself.user1677237– user16772372015-03-27 06:22:12 +00:00Commented Mar 27, 2015 at 6:22
Add a comment
|
3 Answers
I think you should research Polymorphic code. This is different from Polymorphism in type theory. This stack overflow post should also help.
Comments
Best practice would be to have that calculation done server-side and sent to the client.
Otherwise, it is nearly impossible (mathematically speaking) to prevent reverse engineering no matter what.
1 Comment
user1677237
No i didnt use any server side codes. I just want to do it in native APK itself.