Quantum-resistant encryption tool implementing Kyber512 (NIST-standardized PQC algorithm) with hybrid encryption capabilities.
Warning
Developed for educational/research purposes only. Not recommended for production use or sensitive data protection.
- Post-Quantum Secure: Implements Kyber512 (NIST PQC Finalist)
- Hybrid Encryption: Combines Kyber KEM with XOR symmetric encryption
- Simple CLI Interface: Easy encrypt/decrypt workflows
- Cross-Platform: Supports Linux, macOS, and Windows*
- Lightweight: Minimal dependencies with Python 3.8+ compatibility
*Windows requires manual liboqs compilation
- Python 3.8+
- Open Quantum Safe Library (liboqs)
- Python
oqs
bindings
git clone https://github.com/odaysec/kybercryptor.git
cd kybercryptor
python3 -m venv venv
source venv/bin/activate # Windows: venv\Scripts\activate
# Install OQS Python bindings
pip install oqs
- Edit
encrypt.py
to modify default message ("Kyber") - Run encryption:
python encrypt.py
Generates:
kyber_encrypted.dat
(encrypted payload)- Keypair and shared secret
python decrypt.py
Outputs decrypted message to console
kybercryptor/
βββ encrypt.py # Encryption workflow
βββ decrypt.py # Decryption workflow
βββ utils.py # XOR encryption helpers
βββ requirements.txt # Dependency list
βββ LICENSE # MIT License
βββ examples/ # Usage examples (future)
# Encryption
$ python encrypt.py
Successfully encrypted message to kyber_encrypted.dat
# Decryption
$ python decrypt.py
Decrypted message: Kyber
sequenceDiagram
participant User
participant Encrypt.py
participant OQS
participant File
User->>Encrypt.py: Execute script
Encrypt.py->>OQS: Generate Kyber512 keypair
OQS-->>Encrypt.py: (pk, sk)
Encrypt.py->>OQS: Encapsulate shared secret
OQS-->>Encrypt.py: ciphertext, ss
Encrypt.py->>Encrypt.py: XOR encrypt message (msg β ss)
Encrypt.py->>File: Save pk + ciphertext + encrypted_msg
sequenceDiagram
participant User
participant Decrypt.py
participant OQS
participant File
User->>Decrypt.py: Execute script
Decrypt.py->>File: Load encrypted data
Decrypt.py->>OQS: Decapsulate shared secret (sk, ciphertext)
OQS-->>Decrypt.py: ss
Decrypt.py->>Decrypt.py: XOR decrypt message (encrypted_msg β ss)
Decrypt.py-->>User: Display plaintext
- Kyber512 generates public/private keypair
- Shared secret established via KEM
- XOR cipher encrypts payload using shared secret
- Encrypted data stored with public key
MIT Licensed - See LICENSE for details.