Volt

Crypt

The Crypt library provides cryptographic functions for encryption, hashing, and random number generation.

Overview

These functions allow you to:

  • Encrypt and decrypt data
  • Generate cryptographic hashes
  • Create secure random values
  • Perform HMAC authentication

Available Functions

FunctionDescription
crypt.encryptEncrypt data with a key
crypt.decryptDecrypt data with a key
crypt.hashGenerate a hash of data
crypt.hmacGenerate HMAC authentication code
crypt.randomGenerate random bytes
crypt.generatekeyGenerate a random encryption key
crypt.generatebytesGenerate random bytes

Note

Base64 encoding functions (crypt.base64encode, crypt.base64decode) and LZ4 compression functions (crypt.lz4compress, crypt.lz4decompress) are documented in the Encoding section.

On this page