Encrypt

Encrypt text into a base64 encoding using a key and specified OpenSSL algorithm.

Input Fields

  • algorithm: Choose from a dropdown of OpenSSL encryption algorithms.

  • key: The text to use as the encryption key. The same key will be required, along with the algorithm, to decrypt.

  • data: The text to encrypt.

Output Fields

  • output: A base64 encoding of the provided input.

Example

If algorithm is aes-256-cbc, key is my secret key, and data is My secret message!

Then output is hrDDPCtB0Cijc8EFAHhABiYEKdYBgt+e63RGV288SOI=

The value of output can be sent wherever text can be sent. In order to decipher it, someone will need the correct algorithm and the key.

See Also

Functions in Workflows

About the elements of Okta Workflows