How yaredcyber/file-locker works
FileCypher is a Flask file-encryption web app and a directly callable Python crypto API. Its documented browser workflow selects a file and passkey, detects likely encrypted payloads, posts to the workstation, encrypts or decrypts in memory, then downloads the result; the browser also offers SHA-256 text fingerprinting. The package factory configures the Flask app and registers landing and workstation routes. The README describes these package flows, while app.py contains a separate inline Flask implementation; unsampled template and route details are not inferred beyond documented behavior.
Main entry points: tool.js Workstation controller · workstation.py Workstation route · __init__.py App factory · index.html Workstation UI
Components 13
Browser experience
- Workstation UI
filecypher/templates/index.html - Workstation controller
filecypher/static/js/tool.js - Payload detection
filecypher/static/js/tool.js - SHA-256 sandbox
filecypher/static/js/tool.js
Flask web layer
- App factory
filecypher/__init__.py - App configuration
filecypher/config.py - Landing route
filecypher/routes/main.py - Workstation route
filecypher/routes/workstation.py - Landing page
filecypher/templates/home.html - RAM download stream
filecypher/routes/workstation.py
Cryptographic core
- Cipher engine
filecypher/crypto/engine.py
Standalone runtime
- Inline Flask app
app.py
Other components
- User browser
Connections 14
- User browser → Workstation UI: uses
README.md - Workstation UI → Workstation controller: loads controller
README.md - Workstation controller → Payload detection: detects payload
filecypher/static/js/tool.js - Workstation controller → SHA-256 sandbox: hashes text
README.md - Workstation controller → Workstation route: posts file
README.md - Workstation route → Cipher engine: encrypts or decrypts
filecypher/routes/workstation.py - Workstation route → RAM download stream: streams result
filecypher/routes/workstation.py - RAM download stream → User browser: returns download
filecypher/routes/workstation.py - App factory → App configuration: loads config
filecypher/__init__.py - App factory → Landing route: registers blueprint
filecypher/__init__.py - App factory → Workstation route: registers blueprint
filecypher/__init__.py - Landing route → Landing page: renders page
README.md - User browser → Landing page: views overview
README.md - User browser → Inline Flask app: uses standalone app
README.md