Kyber512
Kyber512 is the fastest variant in the Kyber family, offering NIST Level 1 security with excellent performance characteristics.
Security Level
Kyber512 provides:
- NIST Security Level 1
- Protection against quantum computers with ~1000 qubits
- Balanced security-performance trade-off
- Ideal for high-frequency operations
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.Kyber512
);
// Use in operations
await storage
.EncryptWithQuantum()
.Set("data.dat", sensitiveData);
Performance Characteristics
- Key Generation: ~50μs
- Encapsulation: ~60μs
- Decapsulation: ~50μs
- Public Key Size: 800 bytes
- Secret Key Size: 1632 bytes
- Ciphertext Size: 768 bytes
Use Cases
Ideal for:
- High-frequency file operations
- Mobile applications
- Edge computing scenarios
- Real-time data processing
Performance vs Security
Kyber512 offers the best performance in the Kyber family but with a lower security level. For highly sensitive data, consider Kyber1024.
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 all sensitive operations
- Consider caching for frequently accessed files
- Monitor performance metrics in your specific use case
- Document your security requirements and choices