MLKEM768
MLKEM768 is the balanced variant of the ML-KEM family, providing NIST Level 3 security with an excellent balance between security and performance.
Security Level
MLKEM768 provides:
- NIST Security Level 3
- Advanced lattice-based security
- Strong resistance to quantum attacks
- Balanced performance-security trade-off
Master Phrase Security
Your master encryption phrase is critical for data access. If lost, your encrypted files cannot be recovered. We strongly recommend using ByteHide Secrets for secure phrase management.
See our Zero-Knowledge Encryption guide for detailed information.
Implementation
// Initialize with secure key management
var secrets = new SecretsManager("<secrets_token>");
string masterPhrase = await secrets.Get("storage_master_phrase");
var storage = new StorageManager(
"<token>",
masterPhrase,
quantumAlgorithm: QuantumAlgorithmType.MLKEM768
);
// Use in operations
await storage
.EncryptWithQuantum()
.Set("sensitive-data.dat", sensitiveData);
Performance Characteristics
- Key Generation: ~75μs
- Encapsulation: ~85μs
- Decapsulation: ~75μs
- Public Key Size: 1088 bytes
- Secret Key Size: 2304 bytes
- Ciphertext Size: 1024 bytes
Use Cases
Ideal for:
- Enterprise applications
- Cloud storage solutions
- Financial services
- Healthcare data protection
Balanced Security
MLKEM768 provides a strong balance between security and performance, making it suitable for most enterprise applications. For maximum security, consider MLKEM1024.
Best Practices
Key Management
- Use ByteHide Secrets for master phrase storage
- Never hardcode the phrase in your code
- Implement proper key rotation procedures
- Keep secure backups of your master phrase
Implementation
- Enable quantum protection for sensitive data
- Regular security audits
- Monitor performance metrics
- Document security requirements
Security Architecture
- Suitable for enterprise security needs
- Strong protection against quantum threats
- Regular security assessments
- Compliance documentation