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
| Function | Description |
|---|---|
base64_decode | Decodes a base64 encoded string. |
base64_encode | Encodes a string into Base64. |
crypt.decrypt | Decrypts ciphertext with the provided key, initialization vector, and optional cipher mode. |
crypt.encrypt | Encrypts a string with the provided key and returns the ciphertext together with the initialization vector used. |
crypt.generatebytes | Generates cryptographically secure random bytes with the requested length. |
crypt.generatekey | Generates a random key suitable for supported cryptographic helpers. |
crypt.hash | Hashes a string with the selected algorithm and returns the digest. |
crypt.hmac | Creates a keyed HMAC digest for authenticating a message. |
crypt.random | Generates random bytes for nonces, salts, or temporary tokens. |
lz4compress | Compresses a string using LZ4 to reduce size before storage or transfer. |
lz4decompress | Decompresses an LZ4 string and optionally validates the expected decompressed size. |