Page 1 of 1
Is it possible to encrypt some data in the Community Edition?
Posted: Wed Apr 15, 2020 5:55 pm
by japino
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?
Re: Is it possible to encrypt some data in the Community Edition?
Posted: Wed Apr 15, 2020 6:47 pm
by richmond62
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.
Re: Is it possible to encrypt some data in the Community Edition?
Posted: Wed Apr 15, 2020 7:35 pm
by FourthWorld
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.
Re: Is it possible to encrypt some data in the Community Edition?
Posted: Wed Apr 15, 2020 9:02 pm
by japino
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.
Re: Is it possible to encrypt some data in the Community Edition?
Posted: Wed Apr 15, 2020 11:15 pm
by FourthWorld
The top answer here includes good discussion of the issue and a few different options for resolving it:
https://softwareengineering.stackexchan ... ource-code
Re: Is it possible to encrypt some data in the Community Edition?
Posted: Thu Apr 16, 2020 12:48 pm
by japino
Thanks Richard, that's very useful!
Re: Is it possible to encrypt some data in the Community Edition?
Posted: Thu Apr 16, 2020 4:13 pm
by FourthWorld
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.