Open base64decodeOpen base64encodeOpen crypt.decryptOpen lz4compressOpen lz4decompress

Reference

Encoding and crypto

Base64, hashing, encryption, random bytes and compression.

13 functions
FunctionSummary
base64decodebase64.decodebase64_decodecrypt.base64.decode+2Decodes Base64 text into its original bytes.
base64encodebase64.encodebase64_encodecrypt.base64.encode+2Encodes arbitrary bytes as Base64 text.
crypt.decryptDecrypts Base64 AES ciphertext with the original key, IV and mode.
crypt.encryptEncrypts a message with AES and returns Base64 ciphertext plus the IV.
crypt.generatebytesGenerates cryptographically random bytes and returns them as Base64 text.
crypt.generatekeyCreates a random 32-byte key and returns it as Base64 text.
crypt.hashComputes a digest and returns lowercase hexadecimal text.
crypt.hmacComputes a keyed digest and returns Base64 text.
crypt.randomGenerates cryptographically random bytes.
lz4compresscrypt.lz4compresslz4_compressCompresses a byte string with LZ4.
lz4decompresscrypt.lz4decompresslz4_decompressDecompresses LZ4 data into a byte string.
zstdcompresscrypt.zstdcompresszstd_compressCompresses a byte string with Zstandard.
zstddecompresscrypt.zstddecompresszstd_decompressDecompresses a Zstandard frame into a byte string.