Is there any advice on good practice for security in Livecode standalone applications?
My immediate concern is providing a level of protection to an app I'm developing for Android. I'd like to appropriately minimize the risk of naughty people:
- being able to view external database credentials that I've hard coded; and
- being able to reverse engineer my app
I've already discovered:
- Standalone Application Settings > Stacks > Encrypt with password
- http://forums.livecode.com/viewtopic.ph ... ty#p105923
How easy is it for someone to reverse engineer (so that they can view the source code) an APK generated by Livecode?
Thanks in advance
Good practice for security in Livecode
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller
-
- Posts: 253
- Joined: Wed Aug 19, 2015 4:29 pm
Re: Good practice for security in Livecode
If you want good security, use some sort of "middleware" script. Hard coding your database credentials into an app that will be widely distributed is not secure. see this thread, which IIRC contains both a PHP and LiveCode server example.
http://forums.livecode.com/viewtopic.ph ... middleware
http://forums.livecode.com/viewtopic.ph ... middleware
Re: Good practice for security in Livecode
Thanks. I'd already experimented with PhP middleware, and got it working with Livecode, so that is a relatively easy option for me to follow.
Do you have any info on the 2nd part to my query; how easy is it for people to reverse-engineer an apk file to see the Livecode source?
Regards
Do you have any info on the 2nd part to my query; how easy is it for people to reverse-engineer an apk file to see the Livecode source?
Regards
-
- VIP Livecode Opensource Backer
- Posts: 10052
- Joined: Sat Apr 08, 2006 7:05 am
- Contact:
Re: Good practice for security in Livecode
The bad news is that ultimately all software algorithms can be learned through core dumps and disassembly, with any app on any OS made in any language.KimD wrote:Do you have any info on the 2nd part to my query; how easy is it for people to reverse-engineer an apk file to see the Livecode source?
The good news is that few bother. It's a lot of work, and who enjoys working with Assember?

If you password-protect your stacks, that encryption during binding in conjunction with the compilation to the APK format itself will be about as good as any other code protection you'll find in other languages.
Richard Gaskin
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn
Re: Good practice for security in Livecode
Thanks - good to know.