MLKEM512
MLKEM512 is the high-performance variant of the ML-KEM (Machine Learning Key Encapsulation Mechanism) family, offering NIST Level 1 security with optimized performance.
Security Level
MLKEM512 provides:
- NIST Security Level 1
- Lattice-based security
- Optimized for performance
- Suitable for lightweight applications
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.MLKEM512
);
// Use in operations
await storage
.EncryptWithQuantum()
.Set("data.dat", sensitiveData);
Performance Characteristics
- Key Generation: ~45μs
- Encapsulation: ~55μs
- Decapsulation: ~45μs
- Public Key Size: 736 bytes
- Secret Key Size: 1568 bytes
- Ciphertext Size: 704 bytes
Use Cases
Ideal for:
- IoT devices
- Mobile applications
- Edge computing
- Real-time systems
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 operations
- Monitor performance metrics
- Consider caching strategies
- Document security choices
Security Considerations
- Suitable for standard security requirements
- Ideal for high-performance needs
- Consider stronger variants for highly sensitive data