Encrypt Library

The encrypt library is a helpful utility you can use if your script needs to use sensitive data, such as a password, that you don’t want hard coded in Translator lua code that is saved in a Git repository.

The encrypt library securely stores sensitive data in a configuration file in your Iguana X working directory, which can be loaded and decrypted at runtime when needed.

This is done using two functions:

encrypt.save - Encrypt the password and save it to the configuration file. This function should be called once and then removed from your script to ensure you don’t store the hardcoded password in Git.

encrypt.save{password='my password',config='acmeapp.xml', key='skKddd223kdS'}

encrypt.load - Load and decrypt a password from the configuration file

local Password = encrypt.load{config='acmeapp.xml', key='skKddd223kdS'}

This library can be imported into your Translator projects, the source code can be found here: https://bitbucket.org/interfaceware/encrypt-password.git

 

Â