Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Cordova / Phonegap lock the source app code to be not edited/hacked

Everyone knows cordova and phonegap uses a webview so the app contains html and js and css files, which means they can be edited.

What i am wondering, is there any way to lock/ make these files not editable once the app is installed on the phone? hide the code in some way ?

Could be great to know much about this, however this should be what app stores should do , hiding the code should be not done by developers i guess, but if you have any trick/idea/ clue please share it!

thank you!

like image 438
itsme Avatar asked Dec 03 '22 18:12

itsme


1 Answers

You can obfuscate the html,css and javascript files...

Some useful links:

  • Three Ways to Encrypt PhoneGap and Cordova Mobile Applications
  • Obfuscating JavaScript code in Worklight applications

You have to understand that obfuscate is not encrypt.
Your code can be reversed. But not by lazy programmers.

like image 136
xumet Avatar answered Dec 15 '22 00:12

xumet