Page 1 of 1

Save data with encryption

Posted: Fri Mar 04, 2022 3:27 pm
by liveCode
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

Re: Save data with encryption

Posted: Fri Mar 04, 2022 3:44 pm
by Klaus
Your subject already answers your question! :D
Look up "encrypt" and "decrypt" in the dictionary.

Re: Save data with encryption

Posted: Sat Mar 05, 2022 6:02 pm
by jacque
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.

Re: Save data with encryption

Posted: Sat Mar 05, 2022 6:36 pm
by liveCode
think I understood!
Thanks

Re: Save data with encryption

Posted: Sun Mar 06, 2022 5:31 pm
by mrcoollion
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