/
Encrypt Library

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

 

 

Related content

Cloud - GitLab Setup
Cloud - GitLab Setup
More like this
Epic FHIR Adapter
Epic FHIR Adapter
Read with this
Users Configuration File
Users Configuration File
More like this
How to use Athenahealth Sandbox
How to use Athenahealth Sandbox
Read with this
Log Encryption
Log Encryption
More like this
Athenahealth Adapter
Athenahealth Adapter
Read with this