# rkeene/hunter2 architecture

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

- Interactive diagram: https://gitdiagram.com/rkeene/hunter2
- Repository: https://github.com/rkeene/hunter2

## Overview

hunter2 is a script-oriented password manager: users store a password under an identifier and later retrieve it using that identifier. The README documents AES-128 password encryption, RSA encryption of the AES key using hardware-backed keys, and SQLite storage; it also describes sharing access through a common database. No source excerpts were provided, so the graph shows only relationships stated in the README, not unverified internal calls or implementation details.

Main entry points: [`hunter2`](https://github.com/rkeene/hunter2/blob/master/hunter2) (Password manager)

## Diagram (Mermaid)

```mermaid
flowchart TD

node_user(("User"))
node_manager["Password manager"]
node_aes["AES encryption"]
node_rsa["Hardware RSA key"]
node_database[("Shared SQLite database")]

node_user -->|"stores or retrieves"| node_manager
node_manager -->|"encrypts passwords"| node_aes
node_aes -->|"RSA encrypts AES key"| node_rsa
node_manager -->|"stores and retrieves"| node_database
node_user -->|"shares access"| node_database

click node_manager "https://github.com/rkeene/hunter2/blob/master/hunter2"
click node_aes "https://github.com/rkeene/hunter2/blob/master/hunter2"

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_manager,node_aes toneTeal
class node_rsa toneIndigo
class node_database toneAmber
```

## Components

### Other components

- **User**
- [Password manager](https://github.com/rkeene/hunter2/blob/master/hunter2): `hunter2`
- [AES encryption](https://github.com/rkeene/hunter2/blob/master/hunter2): `hunter2`
- **Hardware RSA key**
- **Shared SQLite database**

## Connections

- User → Password manager: stores or retrieves (evidence: `README.md`)
- Password manager → AES encryption: encrypts passwords (evidence: `README.md`)
- AES encryption → Hardware RSA key: RSA encrypts AES key (evidence: `README.md`)
- Password manager → Shared SQLite database: stores and retrieves (evidence: `README.md`)
- User → Shared SQLite database: shares access (evidence: `README.md`)
