How discbrake023/cipherly-encryption works
Cipherly is a Flask web application for password-based text and file encryption, with a browser UI for encryption, analysis, a scripted security demo, and RSA hybrid encryption. The main workflow is user input → feature panel/API request → Flask route → cryptographic core → encoded text or downloadable file. The README documents KDF, AEAD, envelope, and integrity-check capabilities. Some route implementations and frontend modules were not sampled, so links for those features follow the documented product and repository structure; no persistent store is evident.
Main entry points: crypto_core.py Crypto core · app.js Application UI · __init__.py App factory · text.py Text routes
Components 20
Browser UI
- Application UI
static/js/app.js - Text panel
static/js/text_panel.js - File panel
static/js/file_panel.js - Demo panel
static/js/demo_panel.js - Analysis panel
static/js/analysis_panel.js - Hybrid panel
static/js/hybrid_panel.js
Flask API
- Serverless entry
api/index.py - App factory
app/__init__.py - Text routes
app/routes/text.py - File routes
app/routes/file.py - Demo routes
app/routes/demo.py - Analysis routes
app/routes/analysis.py - Hybrid routes
app/routes/hybrid.py
Cryptography
- Crypto core
crypto_core.py - Password KDF
crypto_core.py - AEAD ciphers
crypto_core.py - KRP envelope
crypto_core.py - RSA wrapping
crypto_core.py
Product Features
- Crypto metrics
testing/metrics.py
Other components
- User
Connections 27
- User → Application UI: uses
- Application UI → Text panel: initializes
- Application UI → File panel: initializes
- Application UI → Demo panel: initializes
- Application UI → Analysis panel: initializes
- Application UI → Hybrid panel: initializes
- Serverless entry → App factory: creates app
- App factory → Text routes: registers routes
- App factory → File routes: registers routes
- App factory → Demo routes: registers routes
- App factory → Analysis routes: registers routes
- App factory → Hybrid routes: registers routes
- Text panel → Text routes: requests API
- File panel → File routes: uploads/downloads
- Demo panel → Demo routes: runs scenario
- Analysis panel → Analysis routes: requests metrics
- Hybrid panel → Hybrid routes: requests API
- Text routes → Crypto core: encrypts/decrypts
- File routes → Crypto core: encrypts/decrypts
- Demo routes → Crypto core: runs crypto scenario
- Analysis routes → Crypto metrics: computes metrics
- Crypto metrics → Crypto core: uses primitives
- Hybrid routes → Crypto core: hybrid operations
- Crypto core → Password KDF: derives keys
- Crypto core → AEAD ciphers: encrypts/authenticates
- Crypto core → KRP envelope: encodes parameters
- Crypto core → RSA wrapping: wraps session key