How rn-ops/crypty works
Crypty is a desktop digital-forensics and sanitization prototype: an operator signs in, enters a workspace, selects media, and uses recovery, sanitization, and reporting views. The documented recovery path runs from the UI through a Python/native boundary into filesystem detectors; README describes NTFS reconstruction as planned/incomplete, so this graph does not imply complete recovery. The Flask service separately provides credential/face authentication, role checks, and audit logging. Several UI and native relationships are based on README or SOURCE INDEX references; unsampled details are not inferred.
Main entry points: main_window.py Workspace router · native_bridge.cpp Native bridge · app.py Auth API · native_backend.py Python native adapter
Components 26
Desktop workspace
- Desktop entry
app/main.py - Sign-in UI
ui/auth/auth_window.py - Auth client
auth_client.py - Workspace router
ui/dashboard/main_window.py - Device view
ui/dashboard/devices.py - Device selection
core/device_manager.py - Recovery view
ui/dashboard/recovery.py - Sanitization view
ui/dashboard/sanitization.py - Reports view
ui/dashboard/reports.py
Forensics engine
- Python native adapter
core/native_backend.py - Workflow state
core/src/workflow.cpp - Native bridge
core/src/native_bridge.cpp - NTFS scan/recovery
core/recovery/ntfs_detector.cpp - FAT32 scan/recovery
core/recovery/fat32_detector.cpp - exFAT detection
core/recovery/exfat_detector.cpp
Identity and audit
- Auth API
auth/api/app.py - Face authentication
auth/api/face_auth.py - Password and tokens
auth/api/auth_utils.py - Role access control
auth/api/rbac.py - Audit chain
auth/api/audit.py - Identity database
auth/api/database/db.py
Reports and demo
- Native report serialization
reporting/report.cpp - Demo evidence data
data/demo_data.py
Other components
- Investigator
- Selected media
- Auth service host
Connections 30
- Investigator → Desktop entry: launches
app/main.py - Desktop entry → Sign-in UI: opens
app/main.py - Desktop entry → Auth client: creates
app/main.py - Sign-in UI → Auth client: authenticates
ui/auth/auth_window.py - Auth client → Auth service host: HTTP login
auth_client.py - Auth service host → Auth API: routes request
auth/api/app.py - Auth API → Password and tokens: checks credentials
auth/api/app.py - Auth API → Face authentication: checks face
auth/api/app.py - Auth API → Role access control: guards routes
auth/api/app.py - Auth API → Audit chain: records actions
auth/api/app.py - Auth API → Identity database: reads and writes
auth/api/app.py - Audit chain → Identity database: stores log chain
auth/api/audit.py - Sign-in UI → Workspace router: emits session
app/main.py - Workspace router → Device view: routes view
ui/dashboard/main_window.py - Workspace router → Device selection: selects devices
ui/dashboard/main_window.py - Device selection → Selected media: lists media
- Workspace router → Recovery view: routes view
ui/dashboard/main_window.py - Workspace router → Sanitization view: routes view
ui/dashboard/main_window.py - Workspace router → Reports view: routes view
ui/dashboard/main_window.py - Recovery view → Python native adapter: requests recovery
- Sanitization view → Python native adapter: requests sanitization
- Workspace router → Python native adapter: configures backend
ui/dashboard/main_window.py - Python native adapter → Native bridge: calls native API
README.md - Native bridge → Workflow state: uses workflow
core/src/native_bridge.cpp - Native bridge → NTFS scan/recovery: dispatches scan
core/src/native_bridge.cpp - Native bridge → FAT32 scan/recovery: dispatches scan
core/src/native_bridge.cpp - Native bridge → exFAT detection: dispatches scan
core/src/native_bridge.cpp - Native bridge → Native report serialization: serializes report
core/src/native_bridge.cpp - Reports view → Demo evidence data: reads summaries
ui/dashboard/reports.py - Workspace router → Demo evidence data: loads dashboard data
ui/dashboard/main_window.py