Metadata-Version: 2.4
Name: chromapress
Version: 1.0.0
Summary: Compress hard, encrypt harder — LZMA2 + AES-256-GCM + Scrypt
License: MIT License
        
        Copyright (c) 2026 ChromaPress
        
        Permission is hereby granted, free of charge, to any person obtaining a copy
        of this software and associated documentation files (the "Software"), to deal
        in the Software without restriction, including without limitation the rights
        to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
        copies of the Software, and to permit persons to whom the Software is
        furnished to do so, subject to the following conditions:
        
        The above copyright notice and this permission notice shall be included in all
        copies or substantial portions of the Software.
        
        THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
        IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
        FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
        AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
        LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
        OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
        SOFTWARE.
        
Project-URL: Homepage, https://github.com/chromapress/chromapress
Project-URL: Documentation, https://github.com/chromapress/chromapress#readme
Project-URL: Issues, https://github.com/chromapress/chromapress/issues
Keywords: compression,encryption,lzma,aes-256,scrypt,security
Classifier: Development Status :: 5 - Production/Stable
Classifier: Environment :: Console
Classifier: Intended Audience :: Developers
Classifier: Intended Audience :: System Administrators
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Programming Language :: Python :: 3.13
Classifier: Topic :: Security :: Cryptography
Classifier: Topic :: System :: Archiving :: Compression
Requires-Python: >=3.10
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: cryptography>=41.0
Dynamic: license-file
Dynamic: requires-python

# ChromaPress

**Compress hard, encrypt harder.**

A high-performance file compression and encryption tool combining LZMA2 extreme compression, SHA-256 chunk deduplication, and AES-256-GCM authenticated encryption with a memory-hard Scrypt KDF.

## Installation

```
pip install chromapress
```

## Quick Start

```bash
# Compress + encrypt a file
press myfile.dat

# Decompress
press myfile.dat.press

# Compress without encryption
press myfile.dat --no-encrypt

# Interactive mode
press

# File info (no password needed)
press info myfile.dat.press
```

## Features

- **LZMA2 Extreme** — Preset 9 extreme, the strongest lossless compression available
- **AES-256-GCM** — Authenticated encryption with tamper detection
- **Scrypt KDF** — Memory-hard key derivation (up to 1 GB RAM per brute-force attempt)
- **SHA-256 Deduplication** — Chunk-level dedup eliminates identical blocks before compression
- **Interactive Mode** — Arrow-key guided menu when run with no arguments
- **Windows Integration** — Explorer right-click context menu support

## Compression Pipeline

```
INPUT → CHUNK (64KB) → DEDUP (SHA-256) → LZMA2 (preset 9) → AES-256-GCM → .press
```

## CLI Options

| Flag | Description |
|------|-------------|
| `<file>` | Compress (or auto-decompress if `.press`) |
| `-d <file>` | Force decompress mode |
| `-o <path>` | Output path |
| `-s <level>` | Security: `standard`, `high`, `extreme` |
| `-c <bytes>` | Chunk size (default: 65536) |
| `--no-encrypt` | Compress only, no encryption |
| `-f` | Force overwrite |
| `-q` | Quiet mode |
| `-v` | Show version |
| `info <file>` | Inspect `.press` file metadata |

## Security Levels

| Level | Scrypt N | RAM per attempt |
|-------|----------|-----------------|
| Standard | 2^14 | 16 MB |
| High | 2^17 | 128 MB |
| Extreme | 2^20 | 1 GB |

## Requirements

- Python 3.10+
- cryptography >= 41.0

## License

MIT
