Category

Cryptography

Encoding, hashing, encryption, and compression.

Category guide

Overview

Use this overview to understand the category before opening a specific function.
  • See what this group of functions is meant to solve.
  • Compare function names and descriptions in one table.
  • Open a function for syntax, arguments, returns, and examples.

Cryptography

Available functions

11 functions
FunctionDescription
base64_decodeDecodes a base64 encoded string.
base64_encodeEncodes a string into Base64.
crypt.decryptDecrypts ciphertext with the provided key, initialization vector, and optional cipher mode.
crypt.encryptEncrypts a string with the provided key and returns the ciphertext together with the initialization vector used.
crypt.generatebytesGenerates cryptographically secure random bytes with the requested length.
crypt.generatekeyGenerates a random key suitable for supported cryptographic helpers.
crypt.hashHashes a string with the selected algorithm and returns the digest.
crypt.hmacCreates a keyed HMAC digest for authenticating a message.
crypt.randomGenerates random bytes for nonces, salts, or temporary tokens.
lz4compressCompresses a string using LZ4 to reduce size before storage or transfer.
lz4decompressDecompresses an LZ4 string and optionally validates the expected decompressed size.