DeepSeek Harness plugin

dsh-password

DSH plugin: strong password / diceware passphrase generator (password_generate).

Jump to install

Source facts

Repository
ZhijiangTang/dsh-password
Latest update
Aug 16, 2026
Category
Tools & Capabilities
GitHub stars
0
Format
plugin
Catalog evidence
Upstream dsh.bundle evidence
Evidence path
package.json#dsh.bundle
Checked against
0.1.0-rc.8
Upstream check date
2026-08-20

This evidence comes from the upstream catalog. This site has not installed, run, or security-reviewed the plugin.

Install

Start with a prompt that asks an agent to review the GitHub repository and source. Switch to the command if you want to install it yourself.

Copy this prompt into DSH, Codex, or another agent and ask it to review the GitHub repository and source first.

Do not install or run any commands yet. Read this plugin's GitHub repository, README, and relevant source code. Then answer the questions below clearly and directly so I can decide whether it fits my needs:

1. What is this plugin, and what problem does it solve?
2. Who is it for, and what are its typical use cases?
3. How is it used after installation? Include one minimal example.
4. What known limitations or privacy, security, compatibility, or maintenance risks does it have?
5. Give a clear recommendation: recommend, conditionally recommend, or do not recommend, with reasons.

Distinguish statements documented by the repository, inferences from source code, and unknowns. If evidence is insufficient, say so explicitly. Do not guess or simply repeat the README.

GitHub: https://github.com/ZhijiangTang/dsh-password
Plugin: dsh-password
Author: ZhijiangTang

Check the source files

Read the README and other files from this plugin directory before installing.

File explorer3 files
README.mdSource · read only

dsh-password

DSH 插件:强密码 / Diceware 口令生成工具,注册一个 password_generate 工具。

纯 ESM、零依赖、无构建步骤。所有随机性来自 node:crypto.randomInt(均匀采样,加密安全)。

安装

dsh plugin --profile <name> add file:./plugins/dsh-password
# 或发布后
dsh plugin --profile <name> add dsh-password

工具 password_generate

参数:

参数类型默认说明
typestring(enum random/diceware)random生成类型
lengthnumber20密码长度(8–128,仅 random
countnumber1生成数量(1–10)
wordsnumber5Diceware 单词数(4–8,仅 diceware
separatorstring-Diceware 单词连接符
includeSymbolsbooleantrue是否包含符号(仅 random
avoidAmbiguousbooleantrue排除易混淆字符 Il1O0(仅 random

返回值(规范 JSON 对象):

{
  "ok": true,
  "passwords": ["...", "..."],
  "type": "random",
  "entropyBits": 153.8,
  "charset": "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789!@#$%^&*()_+-=[]{}|;:,.<>?",
  "count": 2,
  "error": ""
}

error 在成功时为空字符串,失败时携带原因。

生成规则

  • randomnode:crypto.randomInt 均匀采样字符集(大小写字母 + 数字 + 符号 !@#$%^&*()_+-=[]{}|;:,.<>?avoidAmbiguous 时剔除 Il1O0)。生成后校验每个密码至少含 1 个小写 / 1 个大写 / 1 个数字(includeSymbols 时再保证 1 个符号),不满足则重生成(上限 20 次,超限退化为确定性补类兜底)。
  • diceware:内置 256 个常见英文短词,randomInt 采样 words 个,用 separator 连接;熵估算为 words × log2(256) bits。

安全说明

  • 随机源为 node:crypto.randomInt(crypto 强随机,均匀采样),不依赖 Math.random
  • 口令仅在内存中生成并返回,不落盘、不写日志;插件不持有任何持久状态。
  • Diceware 词表为内置 256 词,每个单词贡献 log2(256) = 8 bits 熵。
  • 生成的密码/口令会出现在工具返回与界面摘要中,请在使用后自行妥善保管,勿与他人分享。