Hash

The Hash function card encrypts input text and digests the returns a string as output with hex, binary, or base64 encoding.

Input

Field Definition Type Required
algorithm OpenSSL encryption algorithms; options are:
  • md5

  • sha1

  • sha256

  • sha384

  • sha512

Dropdown FALSE
data Encoded text to encrypt. String TRUE
digest Digest module used for the encryption; options are base64, hex, and binary. Dropdown FALSE

Output

Field Definition Type
output Encoding of your input data. String

Example

If algorithm is sha256, data is My secret message!, and digest is base64,

then output is 47DEQpj8HBSa+/TImW+5JCeuQeRkm5NMpJWZG3hSuFU=.

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

Related topics

Functions in Workflows

About the elements of Okta Workflows