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
| Function | Description |
|---|---|
crypt.encrypt | Encrypt data with a key |
crypt.decrypt | Decrypt data with a key |
crypt.hash | Generate a hash of data |
crypt.hmac | Generate HMAC authentication code |
crypt.random | Generate random bytes |
crypt.generatekey | Generate a random encryption key |
crypt.generatebytes | Generate random bytes |
Note
Base64 encoding functions (crypt.base64encode, crypt.base64decode) and LZ4 compression functions (crypt.lz4compress, crypt.lz4decompress) are documented in the Encoding section.