Save data with encryption

LiveCode is the premier environment for creating multi-platform solutions for all major operating systems - Windows, Mac OS X, Linux, the Web, Server environments and Mobile platforms. Brand new to LiveCode? Welcome!

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
liveCode
Posts: 119
Joined: Sun Oct 17, 2021 5:53 pm

Save data with encryption

Post by liveCode » Fri Mar 04, 2022 3:27 pm

Hi
I created an app and to save it I wrote code that adds a file in which the data is saved
but there is a problem,
If the user is smart enough he will be able to access the file and modify the data! And I do not want him to be able to change the data
I read this thread but it did not really help me
viewtopic.php?f=12&t=33338
Thanks

Klaus
Posts: 13806
Joined: Sat Apr 08, 2006 8:41 am
Location: Germany
Contact:

Re: Save data with encryption

Post by Klaus » Fri Mar 04, 2022 3:44 pm

Your subject already answers your question! :D
Look up "encrypt" and "decrypt" in the dictionary.

jacque
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 7215
Joined: Sat Apr 08, 2006 8:31 pm
Location: Minneapolis MN
Contact:

Re: Save data with encryption

Post by jacque » Sat Mar 05, 2022 6:02 pm

If this is the app for Android, your users can't access the file because it is stored in the protected app sandbox. Only users who root their phones may be able to see the file, but most modern phones have protections against that.

But encrypting the file can't hurt if you are really worried.
Jacqueline Landman Gay | jacque at hyperactivesw dot com
HyperActive Software | http://www.hyperactivesw.com

liveCode
Posts: 119
Joined: Sun Oct 17, 2021 5:53 pm

Re: Save data with encryption

Post by liveCode » Sat Mar 05, 2022 6:36 pm

think I understood!
Thanks
Last edited by liveCode on Mon Mar 07, 2022 4:29 pm, edited 1 time in total.

mrcoollion
Posts: 719
Joined: Thu Sep 11, 2014 1:49 pm
Location: The Netherlands

Re: Save data with encryption

Post by mrcoollion » Sun Mar 06, 2022 5:31 pm

Take a look at post

viewtopic.php?f=12&t=33338
Here is a stack 'DemoSaveAppData.zip' that enables you to save data in an array and retrieve it including encryption.

Regards,

Paul

Post Reply

Return to “Getting Started with LiveCode - Experienced Developers”