TINES_ENCRYPT

Encrypts text using Tines encryption. The algorithm ensures safe key and IV management, authenticated encryption, and provides helpful features. Data encrypted with TINES_ENCRYPT must be decrypted with TINES_DECRYPT. Arguments:

text: Plaintext to encrypt.

key: A key of at least 32 bytes in size.

expires_in: An optional parameter, the number of seconds before TINES_DECRYPT will reject decryption.

Syntax 

TINES_ENCRYPT(text, key, [expires_in])

Usage examples 

Example 1

Formula

TINES_ENCRYPT("hello world", CREDENTIAL.secret_key, expires_in: 60)

Sample Actions 

Event Transform
TINES_ENCRYPT
Event Transform
My Action

Select an action to inspect

You can also click "Copy actions" and paste them in your Tines story to see how they work.

Was this helpful?