How pratiush-k/cryptpqc works
Crypt is a post-quantum cryptography assessment and migration toolkit. Users scan source code or a live TLS endpoint, review exposure and Mosca risk, and can explore a toy Shor attack or try hybrid encryption; the web UI and CLI expose overlapping backend capabilities. The hybrid API combines X25519 and ML-KEM key encapsulation with AES-GCM encryption. The graph preserves documented assistant and benchmark features. Some endpoint wiring and the benchmark implementation were not excerpted, so those links rely on README documentation or are omitted where unsupported.
Main entry points: app.py Flask API · cli.py Command line · assistant.py Ask Crypt · app.js Web interface
Components 13
User interfaces
- Web interface
web/app.js - Flask API
app.py - Command line
cryptpqc/cli.py
Exposure assessment
- Code scanner
cryptpqc/scanner.py - TLS endpoint scanner
cryptpqc/tls_scan.py - Mosca risk calculator
cryptpqc/risk.py
Demos and guidance
- Ask Crypt
cryptpqc/assistant.py - Shor attack demo
cryptpqc/shor_demo.py - Scheme benchmarks
cryptpqc/bench.py
Hybrid cryptography
- Encryption API
cryptpqc/api.py - Hybrid key encapsulation
cryptpqc/kem.py
Other components
- User
- Groq service
Connections 15
- User → Web interface: uses
README.md - Web interface → Flask API: calls API
README.md - User → Command line: runs commands
README.md - Command line → Code scanner: scans source
cryptpqc/cli.py - Command line → Scheme benchmarks: runs benchmarks
cryptpqc/cli.py - Flask API → Code scanner: scans uploads
app.py - Flask API → TLS endpoint scanner: scans endpoint
app.py - Flask API → Mosca risk calculator: calculates risk
app.py - Flask API → Ask Crypt: answers questions
app.py - Flask API → Shor attack demo: runs demo
README.md - Flask API → Encryption API: encrypts message
app.py - Flask API → Scheme benchmarks: runs benchmarks
README.md - Ask Crypt → Mosca risk calculator: recomputes verdict
cryptpqc/assistant.py - Ask Crypt → Groq service: requests answer
cryptpqc/assistant.py - Encryption API → Hybrid key encapsulation: encapsulates secrets
cryptpqc/api.py