How alonanazarenko/cryptography-task-2 works
This repository implements the Strumok-256/512 stream cipher and demonstrates its use, alongside a Strumok-512 partial-guessing attack workflow. Users can encrypt and decrypt messages through the example, or generate cipher relations for Autoguess and check cipher-state equations in a simulation. The cipher’s state-transition and output logic form the runtime core; lookup tables support its transforms. The README documents the Autoguess workflow, while the sampled scripts show relation generation, a bonus search, and verification. The Autoguess dependency is external to this repository.
Main entry points: Simulate_attack.py Attack simulation · Strumok.py Strumok cipher · Generate_strumok.py Relation generator · Additional.py Bonus relation search
Components 8
Cipher runtime
- Strumok cipher
Strumok.py - Transform tables
Strumok_tabels.py
Attack modeling
- Relation generator
Generate_strumok.py - Bonus relation search
Additional.py - Autoguess
Usage and verification
- Encrypt example
example_usage.py - Attack simulation
Simulate_attack.py
Other components
- User
Connections 10
- User → Encrypt example: runs
README.md - Encrypt example → Strumok cipher: encrypts with
example_usage.py - Strumok cipher → Transform tables: uses transforms
Strumok.py - User → Relation generator: runs
README.md - Relation generator → Autoguess: provides relations
README.md - User → Bonus relation search: runs
README.md - Bonus relation search → Autoguess: launches search
Additional.py - User → Attack simulation: runs
README.md - Attack simulation → Strumok cipher: simulates cipher
Simulate_attack.py - Attack simulation → Transform tables: uses transforms
Simulate_attack.py