Experimental deterministic hybrid cryptographic system designed by Akshat Dhabalia.
This cipher is experimental.
It has:
- NOT been formally peer-reviewed
- NOT been mathematically proven secure
- NOT been tested against advanced modern cryptanalysis
DO NOT use this system for:
- banking
- passwords
- confidential communications
- production encryption
Intended only for:
- cryptography learning
- experimentation
- CTF challenges
- adversarial testing
- educational research
The Prime Cipher (PC) is a deterministic master-key driven hybrid encryption architecture combining:
- Printable ASCII substitution
- Case-sensitive dual grouping
- Stateful pivot chaining
- Prime-based transformations
- Affine encryption
- Double Myszkowski transposition
- Double Columnar transposition
- Adaptive multi-layer padding
The system operates over the full printable ASCII range (ASCII 32–126).
- Full printable ASCII support
- Deterministic master-key architecture
- Cross-word pivot chaining
- Case-sensitive indexing
- Variable-length transposition keys
- Global and local scrambling
- Multi-stage padding system
- Stateful encryption flow
- Split plaintext into words
- Pre-padding for small words
- Pivot transformation
- Pivot chaining
- Repeat transformation
- Affine transformation
- Double Myszkowski transposition
- Double Columnar transposition
- Final padding
The system requires:
- Plaintext
- MASTER_KEY
- PRIME_NUMBER
- THRESHOLD
python cipher.pyExample:
Enter MASTER plaintext: Hello WORLD I am ChatGPT
Enter MASTER_KEY: AKSHAT2026
Enter PRIME_NUMBER: 101
Enter THRESHOLD: 5
Prime-Cipher/
│
├── README.md
├── PAPER.md
├── LICENSE
├── SECURITY.md
├── REVIEW_PACK.md
│
├── implementation/
│ └── cipher.py
│
└── examples/
Suitable for:
- cryptography learning
- experimental cipher design
- CTF systems
- adversarial analysis
- educational demonstrations
Not suitable for:
- production encryption
- financial systems
- military/security communications
This repository is open for:
- cryptanalysis
- known plaintext attacks
- structural analysis
- entropy analysis
- differential analysis
Constructive criticism and attack attempts are encouraged.
- No formal security proof
- Limited avalanche effect
- Classical transposition layers
- No integrity/authentication mechanism
- Not resistant to modern nation-state cryptanalysis
MIT License with attribution requirement.
Akshat Dhabalia 2026