How alune0xh/hash-identifier works
This small Python CLI offers three user workflows: identify a hash format, verify plaintext against a hash, and generate a hash. The main() loop presents the menu and dispatches to handlers; verification first uses identification to select an algorithm, then compares the computed digest. Hash operations use Python’s standard-library hashlib, while identification uses re. All product code is in main.py; the graph reflects its excerpt and the README’s documented capabilities.
Main entry points: main.py Menu and dispatch
Components 10
CLI
- Menu and dispatch
main.py - Identify handler
main.py - Verify handler
main.py - Generate handler
main.py
Hash Operations
- Hash identifier
main.py - Hash verifier
main.py - Hash generator
main.py - Python re
- Python hashlib
Other components
- CLI user
Connections 11
- CLI user → Menu and dispatch: uses
main.py - Menu and dispatch → Identify handler: dispatches
main.py - Menu and dispatch → Verify handler: dispatches
main.py - Menu and dispatch → Generate handler: dispatches
main.py - Identify handler → Hash identifier: describes
main.py - Verify handler → Hash identifier: identifies
main.py - Verify handler → Hash verifier: verifies
main.py - Generate handler → Hash generator: generates
main.py - Hash identifier → Python re: matches with
main.py - Hash verifier → Python hashlib: hashes with
main.py - Hash generator → Python hashlib: hashes with
main.py