android - Which is safer for Algorithm implementation? -
i've data processing algorithm apply 1 of android application. algorithm can implemented via java or native code c. safer algorithm implementation java or c far know android dex file can reversed engineered. applicable c?
code safety maximum when in c(native) java.
"so far know android dex file can reversed engineered. applicable c?"
doing in java
by making code-pakages library can make java codes safe. if reverse engineerd or apk breaked code not visible, encrypted format. change algorithm package library , add project assets folder , buildpath.
doing in c
and if doing in c sure 1 breaks apk cant see c code. sometime visible not in readble format. if implementing via c, make process more faster in java , allocated more memory process. heap memory not limitation code. thing is, because of using jni chances of getting errors more , difficult trackdown errors in runtime.
note :since hacking can done in many ways.. cant give compleate assurance..but in of ways thing ..making algorithm packages library , adding project buildpath or doing in native, can make code safe maximum extend..
Comments
Post a Comment