Encryption Functions

8 functions for hashing, encrypting, and signing data.

Hashing

FunctionDescriptionInputs
SHA256SHA-256 hashdata
SHA1SHA-1 hashdata
HashHash with algorithm choicedata, algorithm (md5/sha1/sha256/sha384/sha512), digest (hex/base64/binary)
HMACHMAC with keydata, key, algorithm, digest

Encryption

FunctionDescriptionInputs
AESAES encryptalgorithm (aes-128/256-cbc/gcm/etc.), key, data
EncryptEncrypt with algorithmalgorithm (aes/des variants), key, data
DecryptDecrypt dataalgorithm, key, data

AES Algorithms

aes-128-cbc, aes-128-cfb1, aes-128-ctr, aes-128-ecb, aes-128-gcm, aes-256-cbc, aes-256-cfb1, aes-256-ctr, aes-256-ecb, aes-256-gcm

Example: Hash and HMAC

Hash and HMAC

SHA256 hash a message, then create HMAC signature

Encryption

SHA256

data
message
output

Encryption

HMAC

algorithm
sha256
key
{{vault.SECRET}}
data
output
digest
hex
output

Signing

FunctionDescriptionInputs
SignSign with private keyalgorithm (md5-sha512), data, digest (hex/base64/binary), key, passphrase

All functions output a single output field (string).