Returns
Uint8Array
: A 32-byte array containing cryptographically secure random data suitable for index encryption.
Security Notes
The generated key is cryptographically secure and suitable for production use:- Uses Node.js
crypto.randomBytes()
which leverages OS entropy sources for maximum security - Provides 256 bits of entropy (32 bytes)
- Compatible with AES-256 encryption used by CyborgDB
This key must be persisted securely. For more information, see Managing Encryption Keys.