We Use Cookies

We use cookies to ensure that we give you the best experience on our website. If you continue to use this site we will assume that you are happy with this.

See our cookie policy.

Automation Action: Encryption

Encrypt/decrypt text data or files.

Built-In Action

Encrypts or Decrypts text or files using AES encryption and returns the encrypted/decrypted text/filename to a variable.

This action is used both to encrypt and decrypt text or files. Select the Encrypt or Decrypt options.

Encrypting

To encrypt text select the Encrypt option and enter the text or file to encrypt.

When encrypting text you must specify the Encoding method to use. This can be hex, base64 or URL. The default is base64.

To encrypt a file select the Encrypt File tab and select the File Path & File Name. Select the Save To Path to save the encrypted file to. Optionally enter a Save To Filename. If no filename is specified then the original file name will be used but with an '.aes' extension. You can use %variable% replacements for the file path & names - this enables you to use it with the For..Each action if you wanted to encrypt attachments.

You must specify a Key Length and Secret Key. The key length can be 256, 192 or 128. These are bit sizes. The secret key length must be 32 characters for 256 bit keys, 24 characters for 192 bit keys or 16 characters for 128 bit keys. You can use %variable% replacements for the secret key - however this must convert to the correct key length when the message is processed.

The encrypted text/file path can be returned to a variable. Select from the Assign Encrypted File To list.

Decrypting

To decrypt text select the Decrypt option and enter the text or file to decrypt. The text must be encoded using the same encoding method used to encrypt (base64, hex or URL). You must also specify the Encoding method.

To decrypt a file select the Decrypt File tab and select the File Path & File Name. Select the Save To Folder to save the decrypted file to and enter the Save To File Name.

You must specify a Key Length and Secret Key. The key length can be 256, 192 or 128. These are bit sizes. The secret key length must be 32 characters for 256 bit keys, 24 characters for 192 bit keys or 16 characters for 128 bit keys. You can use %variable% replacements for the secret key - however this must convert to the correct key length when the message is processed.

The decrypted text/file path can be returned to a variable. Select from the Assign Decrypted File To list.