Available functions

base64_decode

Decodes Base64 into bytes.

base64_encode

Encodes arbitrary bytes as Base64.

crypt.decrypt

Decrypts Base64 AES-256-CBC ciphertext into raw plaintext.

crypt.encrypt

Encrypts raw plaintext using AES-256-CBC and returns Base64 ciphertext plus Base64 IV.

crypt.generatebytes

Generates secure random bytes and returns them Base64-encoded.

crypt.generatekey

Generates a Base64-encoded 32-byte key.

crypt.hash

Returns a hexadecimal digest.

crypt.hmac

Computes HMAC-SHA256 and returns a Base64 digest.

crypt.random

Returns raw secure random bytes.

getfunctionhash

Hashes a Luau function’s prototype-derived representation using SHA384.

lz4compress

Compresses bytes into a raw LZ4 block.

lz4decompress

Decompresses bytes produced by Byte’s LZ4 compressor.