Android Question Encrypt Asset Files

Tasyo28

Member
Licensed User
Hi All,

I want to release my native web app using webview with local HTML files but before i publish it to public i want to know how can i encrypt my asset files in B4a.

Because even we export our program to apk we can still see the asset files in android rooted, i want to protect my html codes and files to hacker any suggestion please?
 

KMatle

Expert
Licensed User
Longtime User
See here: https://www.b4x.com/android/forum/threads/secured-assets-encrypt-your-assets-files.35589/

If you don't use the designer you can also use some subs (e.g. CreateEdittext, CreateLabel, etc.) to create the layout. The data for the views like top, left, width and height can then also be encrypted. Store the info in the asset folder, too. A bit of work but if someone wants to copy parts of your app, the layout isn't usable or it is hard to "hack".
 
Upvote 0

udg

Expert
Licensed User
Longtime User
There's a point that eludes me: to decrypt all that stuff you need to provide your code the password. If you store it in code, well, it's there. If you download it at runtime from a server, decompiling your code gives hints on how to download it anyway. So, how secret it's the secret?
You could adopt a steganography-like method to hide it, but will it suffice?
 
Upvote 0
Top