-
Notifications
You must be signed in to change notification settings - Fork 14
How do I use password protection for my application stacks?
Commercial versions of LiveCode allow you to set the password property of a stack in order to encrypt the scripts. While this is a useful feature it can be troublesome to password protect your stacks during development. Levure allows you to develop your application using unencrypted stacks and gives you the option of encrypting some or all of your stacks when you build a distribution with the packager.
To encrypt stacks in your distribution builds, do the following:
-
In
app.ymlset theencrypt stacksentry torandomorpassword.randomusesuuid()to generate a password each time you package your application.encrypt stacks: random -
If you set
encrypt stackstopasswordthen create an.envfile alongside the app.yml file withPASSWORD=YOUR_PASSWORD_HEREin it.If you are using Git, don't commit the
.envfile to your version control repository. -
If you want to leave some stacks unencrypted in your builds, you can override the
encrypt stackssetting for specific stacks. Here is an example inapp.yml:libraries: - filename: my_unencrypted_library.livecodescript encrypt: false - folder: my_folder_of_unencrypted_libraries encrypt: false
Levure is an application development framework written for LiveCode.