# kiarashminoo/passwordgeneratorcli architecture

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

- Interactive diagram: https://gitdiagram.com/kiarashminoo/passwordgeneratorcli
- Repository: https://github.com/kiarashminoo/passwordgeneratorcli

## Overview

AdvancedPassGenerator is a small .NET password-generation product: a reusable library provides generation and configurable character sets and constraints, while a CLI exposes generation to users. The documented workflow is a user invoking the CLI with a requested length and options, then generating a password through the library using cryptographic randomness. Impossible configurations are rejected. The repository tree identifies the implementation files, but no source excerpts were provided, so internal calls and the CLI-to-settings handoff cannot be verified; the latter is omitted.

Main entry points: [`PasswordGeneratorCLI/Program.cs`](https://github.com/kiarashminoo/passwordgeneratorcli/blob/main/PasswordGeneratorCLI/Program.cs) (CLI), [`KiarashMinoo.PasswordGenerator/PasswordGenerator.cs`](https://github.com/kiarashminoo/passwordgeneratorcli/blob/main/KiarashMinoo.PasswordGenerator/PasswordGenerator.cs) (Password Generator)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_cli["Command Line"]
  node_command["CLI<br/>[Program.cs]"]
end

subgraph group_library["Password Library"]
  node_settings["Generation Settings"]
  node_generator["Password Generator"]
end

node_user(("User"))
node_rng["Cryptographic RNG"]

node_user -->|"invokes"| node_command
node_command -->|"generates with"| node_generator
node_generator -->|"uses"| node_rng

click node_command "https://github.com/kiarashminoo/passwordgeneratorcli/blob/main/PasswordGeneratorCLI/Program.cs"
click node_settings "https://github.com/kiarashminoo/passwordgeneratorcli/blob/main/KiarashMinoo.PasswordGenerator/PasswordSettings.cs"
click node_generator "https://github.com/kiarashminoo/passwordgeneratorcli/blob/main/KiarashMinoo.PasswordGenerator/PasswordGenerator.cs"

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_command,node_user toneBlue
class node_settings,node_generator toneAmber
class node_rng toneIndigo
```

## Components

### Command Line

- [CLI](https://github.com/kiarashminoo/passwordgeneratorcli/blob/main/PasswordGeneratorCLI/Program.cs): `PasswordGeneratorCLI/Program.cs`

### Password Library

- [Generation Settings](https://github.com/kiarashminoo/passwordgeneratorcli/blob/main/KiarashMinoo.PasswordGenerator/PasswordSettings.cs): `KiarashMinoo.PasswordGenerator/PasswordSettings.cs`
- [Password Generator](https://github.com/kiarashminoo/passwordgeneratorcli/blob/main/KiarashMinoo.PasswordGenerator/PasswordGenerator.cs): `KiarashMinoo.PasswordGenerator/PasswordGenerator.cs`

### Other components

- **User**
- **Cryptographic RNG**

## Connections

- User → CLI: invokes (evidence: `README.md`)
- CLI → Password Generator: generates with (evidence: `README.md`)
- Password Generator → Cryptographic RNG: uses (evidence: `README.md`)
