# astrocryptx/securom architecture

> Architecture diagram of the GitHub repository astrocryptx/securom, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-17). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/astrocryptx/securom
- Repository: https://github.com/astrocryptx/securom

## Overview

The repository’s actual runtime is a single Windows-oriented Python script, not the broader AstroCrypt toolkit described in the README. After a five-second delay, it checks for a sentinel file: if present, it deletes it; otherwise, it logs the current user and time, hides the log, displays a ten-step warning, and forces shutdown. The stages are all implemented in SecuROM.py. The graph reflects those source-visible actions; the README’s broader security and cryptography capabilities are not represented in the available code.

Main entry points: [`SecuROM.py`](https://github.com/astrocryptx/securom/blob/master/SecuROM.py) (SecuROM Script)

## Diagram (Mermaid)

```mermaid
flowchart TD

node_user(("Local User"))
node_script["SecuROM Script<br/>[SecuROM.py]"]
node_sentinel["Sentinel File"]
node_log["Guardian Log"]
node_warning["Warning Display<br/>[SecuROM.py]"]
node_windows["Windows System"]

node_user -->|"runs"| node_script
node_script -->|"checks"| node_sentinel
node_script -->|"deletes if present"| node_sentinel
node_script -->|"appends if absent"| node_log
node_script -->|"hides log"| node_windows
node_script -->|"displays countdown"| node_warning
node_script -->|"forces shutdown"| node_windows

click node_script "https://github.com/astrocryptx/securom/blob/master/SecuROM.py"
click node_warning "https://github.com/astrocryptx/securom/blob/master/SecuROM.py"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_user toneBlue
class node_script,node_warning toneTeal
class node_sentinel,node_log,node_windows toneIndigo
```

## Components

### Other components

- **Local User**
- [SecuROM Script](https://github.com/astrocryptx/securom/blob/master/SecuROM.py): `SecuROM.py`
- **Sentinel File**
- **Guardian Log**
- [Warning Display](https://github.com/astrocryptx/securom/blob/master/SecuROM.py): `SecuROM.py`
- **Windows System**

## Connections

- Local User → SecuROM Script: runs (evidence: `README.md`)
- SecuROM Script → Sentinel File: checks (evidence: `SecuROM.py`)
- SecuROM Script → Sentinel File: deletes if present (evidence: `SecuROM.py`)
- SecuROM Script → Guardian Log: appends if absent (evidence: `SecuROM.py`)
- SecuROM Script → Windows System: hides log (evidence: `SecuROM.py`)
- SecuROM Script → Warning Display: displays countdown (evidence: `SecuROM.py`)
- SecuROM Script → Windows System: forces shutdown (evidence: `SecuROM.py`)
