I have mobile app created using Framework7 Cordova app. My goal is to encrypt files in assets directory (JS and HTML files) so they are unreadable to people, who unzip the APK file and want to see the JS sources.
Ok, i know there is no absolute perfect solution. On my way to this question I’ve already tried options how to solve copy protection of my sources (JS minification, obfuscation, etc…), but I found out that it’s very simple to get to the original code (using JSBeautifier, firebug, including obfuscated scripts, etc…).
So my question is - is there some simple way how to encrypt JS+HTML files (so they are not readable and useful when simply unzipping APK file) and how to implement it in JAVA for Android platform ?
Note: I have no knowledge of JAVA language, so please include working example which I can use.