Metadata-Version: 2.4
Name: kryptos
Version: 1.1.0
Summary: Cross-platform terminal 2FA authenticator with AES-256 encryption
Author: NyxWarden
License: MIT
Project-URL: Homepage, https://github.com/NyxWarden/kryptos
Project-URL: Bug Tracker, https://github.com/NyxWarden/kryptos/issues
Keywords: totp,2fa,authenticator,otp,security,encryption,terminal,cli
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.8
Classifier: Programming Language :: Python :: 3.9
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
Classifier: Topic :: Utilities
Requires-Python: >=3.8
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: pyotp>=2.8.0
Requires-Dist: pycryptodome>=3.19.0
Dynamic: license-file

# Kryptos

**Cross-platform terminal 2FA authenticator with AES-256 encryption**

Named after the Greek word for "hidden" or "secret", Kryptos keeps your TOTP secrets secure while providing a fast, keyboard-driven interface for generating authentication codes.

## Features

- **AES-256 Encryption** - Your secrets are protected with military-grade encryption
- **Cross-Platform** - Works on Windows, macOS, and Linux
- **Live Countdown** - Real-time display showing when codes refresh
- **Portable Mode** - Keep your vault on a USB drive
- **Duress Mode** - Set a panic flag that silently wipes your vault if you're ever forced to open it
- **Self-Update** - Update to latest version with `kryptos --update`
- **Zero External Auth** - No cloud accounts, no phone required
- **Keyboard-Driven** - Fast navigation without touching your mouse

## Installation

```bash
pip install kryptos
```

## Quick Start

```bash
# Launch Kryptos
kryptos

# First run will prompt you to set up encryption (optional but recommended)
```

## Usage

### Command Line Options

```bash
kryptos                      # Launch interactive mode
kryptos --version            # Show version
kryptos --update             # Update to latest version
kryptos --help               # Show help
kryptos --get GitHub         # Get code for GitHub (prompts for password)
kryptos --get GitHub --copy  # Get code and copy to clipboard
kryptos -g pypi -c           # Short form: get PyPI code, copy it
```

### Interactive Mode

#### Main Menu
- `1-9` - Quick select account by number
- `a` - Add new account
- `d` - Delete account
- `s` - Settings
- `q` - Quit

### Adding Accounts
Enter the service name and your TOTP secret key (the base32 string from your 2FA setup).

### Settings
- Toggle encryption on/off
- Change your master password
- Enable portable mode for USB storage
- Configure duress flag (panic wipe)

## Duress Mode

Set a custom secret flag in Settings → Duress Flag. If you're ever forced to open Kryptos, launch it with your duress flag:

```bash
kryptos --mycat  # Your custom flag silently wipes the vault
```

The vault is deleted and Kryptos opens fresh as if you never had any accounts. The person watching sees an empty authenticator.

## Portable Mode

Enable portable mode in settings to store your vault in the same directory as the script. Perfect for USB drives:

```
USB Drive/
  kryptos.py
  kryptos_vault.dat
```

## Security

- **Encryption**: AES-256-CBC with PBKDF2 key derivation (100,000 iterations)
- **No Plaintext**: Secrets are never written to disk unencrypted (when encryption is enabled)
- **Memory Safe**: Sensitive data cleared after use
- **Local Only**: No network calls, no telemetry, no cloud sync

## Requirements

- Python 3.8+
- pyotp
- pycryptodome

## Part of the Nyx Security Suite

Kryptos is part of a collection of security tools by NyxWarden:

- **[Nyx](https://pypi.org/project/nyx-scanner/)** - Python security vulnerability scanner

## License

MIT License - See LICENSE file for details.

## Author

**NyxWarden**

---

*"In the shadows, secrets stay safe."*
