How emecyildiz/encryption works
KASA is a local-first Windows file-protection desktop app. Its main workflow is to collect files or folders, select protection or unlock, process each file with authenticated encryption, and present saved outputs and results. The repository also includes a read-only preview mode and an update flow. The graph uses README workflow and security statements plus the supplied source excerpts and index; unsampled implementation links are omitted or marked unverified.
Main entry points: AppWindow.cpp File workspace · PreviewWindow.cpp Preview window · main.cpp Startup routing · encryption_engine.cpp Encryption engine
Components 20
Desktop workflow
- Startup routing
main.cpp - File workspace
AppWindow.cpp - Batch coordination
batch_runner.h - Batch state
batch_state.h - Output placement
output_path.h - Verified saving
verified_save.cpp
Protection and preview
- Encryption engine
encryption_engine.cpp - Plaintext handling
plaintext_output.h - Preview window
PreviewWindow.cpp - Preview policy
preview_policy.h - Text preview
preview_text.cpp - Image preview
preview_image.cpp
Application updates
- Update controls
AppWindow.cpp - Release checking
update_check.cpp - Manifest validation
update_manifest.cpp - Bounded download
update_download.cpp - Update preparation
update_job.cpp - Installer staging
update_staging.cpp
Release metadata
- Metadata publisher
update_publisher.cpp
Other components
- User
Connections 21
- User → Startup routing: launches
README.md - Startup routing → File workspace: opens
main.cpp - Startup routing → Preview window: routes preview
main.cpp - User → File workspace: selects sources
README.md - File workspace → Batch coordination: starts processing
AppWindow.cpp - File workspace → Batch state: tracks progress
- File workspace → Encryption engine: processes files
- File workspace → Output placement: chooses destination
AppWindow.cpp - File workspace → Verified saving: saves outputs
AppWindow.cpp - Encryption engine → Plaintext handling: handles plaintext
encryption_engine.cpp - Preview window → Encryption engine: decrypts preview
PreviewWindow.cpp - Preview window → Preview policy: applies limits
- Preview window → Text preview: renders text
PreviewWindow.cpp - Preview window → Image preview: renders images
PreviewWindow.cpp - User → Update controls: checks updates
README.md - Update controls → Release checking: requests check
- Release checking → Manifest validation: checks metadata
- Manifest validation → Bounded download: validates release
- Update preparation → Bounded download: prepares download
- Update preparation → Installer staging: stages installer
- Metadata publisher → Manifest validation: publishes metadata