Android Question B4XPages project and obfuscation

scGuy

Member
Licensed User
Multiple posts about how strings (for api keys etc) will be obfuscated if placed in Process_Globals:

https://www.b4x.com/android/forum/t...bals-strings-obfuscated-in-all-modules.75251/

...I am working with a B4XPages project for the first time... comments in the Activity module "Main" discourage any code in there, so I've been declaring all string constants etc in "B4XMainPage" Class_Globals. However now that I've read a few posts, I'm led to believe that strings will not be obfuscated there.

In a B4XPages B4A project, where should I place strings that need to be obfuscated?

Thanks
 

scGuy

Member
Licensed User
I'm considering obfuscating basically all literal strings in my application by declaring them in process_globals. Any limitations? Arrays too? I would do this...

B4X:
Public Literals() As String = Array As String("Miller", "Smith", "Johnson", "Jordan")

...array constants like above obfuscated as well? Don't see why they wouldn't be. Any limit to how big Process_Globals obfuscated content can be? Sorry in advance for dumb questions, but just trying to make sure. My only real concern with B4X (awesome tools!) is whether people can easily investigate our code.
 
Upvote 0
Cookies are required to use this site. You must accept them to continue using the site. Learn more…