Metadata-Version: 2.4
Name: hashwarden
Version: 0.1.0
Summary: A lightweight file integrity monitoring (FIM) CLI tool using SHA-256 cryptographic hashing.
Author-email: Sohan Shelar <sohanshelar01@gmail.com>
License-Expression: MIT
Keywords: security,cybersecurity,file-integrity,fim,hashing,sha256
Classifier: Programming Language :: Python :: 3
Classifier: Operating System :: OS Independent
Classifier: Topic :: Security :: Cryptography
Requires-Python: >=3.8
Description-Content-Type: text/markdown
License-File: LICENSE
Dynamic: license-file

# HashWarden

A lightweight, zero-dependency **File Integrity Monitoring (FIM)** CLI tool built in Python. HashWarden uses cryptographic SHA-256 hashing to establish baselines and detect unauthorized file modifications, new files (backdoors/payloads), or deleted files.

---

## ⚡ Features

- **Zero External Dependencies**: Uses only standard Python libraries (`hashlib`, `os`, `sys`).
- **Memory-Efficient**: Reads large files in 4 KB chunks to avoid high RAM consumption.
- **Fast Detection**: Instantly flags modified, created, and deleted files.

---

## 📦 Installation

Install HashWarden directly from PyPI using pip:

```bash
pip install hashwarden
```

---

## 🚀 Usage

### 1. Create a Baseline

Scan a target directory and record the known-good state:

```bash
hashwarden baseline /path/to/directory
```

### 2. Verify Integrity

Compare the current state of a directory against your saved baseline:

```bash
hashwarden check /path/to/directory
```

### 3. Custom Baseline Path (Optional)

By default, HashWarden creates a baseline in your local path. You can specify a custom file path for the baseline database if needed:

```bash
# Generate a baseline to a specific file location
hashwarden baseline /path/to/directory my_baseline.txt

# Check using that specific baseline file
hashwarden check /path/to/directory my_baseline.txt
```
