Metadata-Version: 2.4
Name: dong-pass
Version: 0.1.0
Summary: 密码咚 - 账号密码管理 CLI
Author: gudong
License-File: LICENSE
Keywords: account,cli,password,security
Requires-Python: >=3.11
Requires-Dist: cryptography>=41.0.0
Requires-Dist: rich>=13.0.0
Requires-Dist: typer>=0.12.0
Provides-Extra: dev
Requires-Dist: pytest-cov>=4.0; extra == 'dev'
Requires-Dist: pytest>=7.0; extra == 'dev'
Description-Content-Type: text/markdown

# 密码咚（dong-pass）

账号密码管理 CLI - 帮你安全存储和管理账号密码

## 安装

```bash
pipx install dong-pass
```

## 快速开始

```bash
# 初始化
dong-pass init

# 添加账号
dong-pass add github --account gudongtongxue --password "Gudong123!@#" --category "个人"

# 查询账号
dong-pass get github

# 列出所有
dong-pass list

# 搜索
dong-pass search "github"
```

## 命令

| 命令 | 说明 |
|------|------|
| `init` | 初始化数据库 |
| `add` | 添加账号 |
| `get` | 获取账号 |
| `list` | 列出所有 |
| `search` | 搜索 |
| `update` | 更新账号 |
| `delete` | 删除账号 |
| `stats` | 统计信息 |
| `export` | 导出为 JSON |
| `import` | 从 JSON 导入 |
| `set-master` | 设置主密码 |
| `change-master` | 更改主密码 |
| `remove-encrypt` | 移除加密 |

## 加密存储

```bash
# 设置主密码（加密模式）
dong-pass init --master-password "MySecretKey"

# 添加时加密
dong-pass add github --account gudong --password "123456" --encrypt

# 查询时需要输入主密码
dong-pass get github
# 输入主密码: MySecretKey
# 显示密码: 123456
```

## 数据库

数据存储在 `~/.dong/accounts.db`

## License

MIT
