How robertolechowski/k2000_visa_generator works
This Flask application generates Philips CT service-access codes from a device ID and validity period. The principal workflow is a user submitting an ID through the web app; the generator parses it, computes the date-bound code, formats it, and returns the result. The algorithm uses separate time, seed, transform, and fixed-width integer layers. The web app also proxies analytics events. The graph follows shown calls and README capabilities; template and browser-script internals were not sampled.
Main entry points: WebApp.py Flask web app · Computer.py Code computer · Uint64.py 64-bit arithmetic · PhilipsGenerator.py Philips generator
Components 14
Web interface
- Flask web app
app/WebApp.py - Generator page
app/templates/index.html - Browser tracker
static/tracker.js
Code algorithm
- Philips generator
app/PhilipsGenerator.py - Device ID parser
app/DeviceIdParser.py - Code computer
app/Computer.py - Seed and time transforms
app/Transform.py - Time conversion
app/TimeHelper.py - 32-bit arithmetic
app/Uint32.py - 64-bit arithmetic
app/Uint64.py
Application runtime
- WSGI entrypoint
wsgi.py - Logging setup
app/helpers/config_builder.py
Other components
- User
- Analytics service
Connections 19
- User → Flask web app: submits request
app/WebApp.py - Flask web app → Generator page: renders
app/WebApp.py - Flask web app → Philips generator: generates code
app/WebApp.py - Philips generator → Device ID parser: parses ID
app/PhilipsGenerator.py - Philips generator → Code computer: computes code
app/PhilipsGenerator.py - Philips generator → 64-bit arithmetic: formats code
app/PhilipsGenerator.py - Device ID parser → 32-bit arithmetic: creates value
app/DeviceIdParser.py - Code computer → Seed and time transforms: applies transforms
app/Computer.py - Code computer → Time conversion: converts time
app/Computer.py - Code computer → 32-bit arithmetic: uses arithmetic
app/Computer.py - Code computer → 64-bit arithmetic: uses arithmetic
app/Computer.py - Seed and time transforms → 32-bit arithmetic: uses arithmetic
app/Transform.py - Seed and time transforms → 64-bit arithmetic: uses arithmetic
app/Transform.py - Time conversion → 64-bit arithmetic: converts timestamp
app/TimeHelper.py - 64-bit arithmetic → 32-bit arithmetic: builds words
app/Uint64.py - WSGI entrypoint → Flask web app: creates app
wsgi.py - WSGI entrypoint → Logging setup: initializes logging
wsgi.py - Flask web app → Analytics service: proxies events
app/WebApp.py - Browser tracker → Flask web app: sends events