Is it possible to encrypt some data in the Community Edition?

Got a LiveCode personal license? Are you a beginner, hobbyist or educator that's new to LiveCode? This forum is the place to go for help getting started. Welcome!

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller

Post Reply
japino
Posts: 78
Joined: Sun Oct 14, 2012 10:56 am

Is it possible to encrypt some data in the Community Edition?

Post by japino » Wed Apr 15, 2020 5:55 pm

I’m working on a small project for a very limited audience. I’m using the Community Edition and it’s absolutely fine that they can see my code. But I’m also using an API key stored in a field that I’m using for a call and I’d like to keep that key private. Is that possible at all in the Community Edition?

richmond62
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 10099
Joined: Fri Feb 19, 2010 10:17 am

Re: Is it possible to encrypt some data in the Community Edition?

Post by richmond62 » Wed Apr 15, 2020 6:47 pm

As the Community edition is open source it is governed by an open source licence,
ad as such, should anyone request all of your code you have to supply it to them.

I also have a funny feeling that rolling a proprietary component into something open source may,
theoretically at least, be opening a legal can of worms.

FourthWorld
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 10049
Joined: Sat Apr 08, 2006 7:05 am
Contact:

Re: Is it possible to encrypt some data in the Community Edition?

Post by FourthWorld » Wed Apr 15, 2020 7:35 pm

Industry-standard encryption is available with all editions of LiveCode. Only the ability to encrypt scripts is absent in the Community Edition, as it would not be needed for deployments where source is freely available. Data, however, can be strongly encrypted.

As for API keys, consider that most scripting languages have no script encryption at all. What do you need to do specifically? I'll bet there's a way other languages handle it well, and we should be able to do it at least as well with LC.
Richard Gaskin
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn

japino
Posts: 78
Joined: Sun Oct 14, 2012 10:56 am

Re: Is it possible to encrypt some data in the Community Edition?

Post by japino » Wed Apr 15, 2020 9:02 pm

My script is making a curl call to a website using the shell command. The API key is in the curl call and I don’t want people to see my API key.

FourthWorld
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 10049
Joined: Sat Apr 08, 2006 7:05 am
Contact:

Re: Is it possible to encrypt some data in the Community Edition?

Post by FourthWorld » Wed Apr 15, 2020 11:15 pm

The top answer here includes good discussion of the issue and a few different options for resolving it:
https://softwareengineering.stackexchan ... ource-code
Richard Gaskin
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn

japino
Posts: 78
Joined: Sun Oct 14, 2012 10:56 am

Re: Is it possible to encrypt some data in the Community Edition?

Post by japino » Thu Apr 16, 2020 12:48 pm

Thanks Richard, that's very useful!

FourthWorld
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 10049
Joined: Sat Apr 08, 2006 7:05 am
Contact:

Re: Is it possible to encrypt some data in the Community Edition?

Post by FourthWorld » Thu Apr 16, 2020 4:13 pm

japino wrote:
Thu Apr 16, 2020 12:48 pm
Thanks Richard, that's very useful!
You're welcome. Happy to help.

Keep us posted if you run into any other challenges.
Richard Gaskin
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn

Post Reply