dsh-password
by ZhijiangTang
DSH 插件:强密码 / Diceware 口令生成工具,注册一个 password generate 工具。
DSH plugin: strong password & diceware passphrase generator (crypto random)
安装
dsh plugin --profile web add github:ZhijiangTang/dsh-passwordGitHub 源码安装:首次需按提示配置 allowBuilds 构建授权后重试
安装与环境配置指引、插件开发教程见 DSH 中文社区文档 ↗
安装即在你的机器上以你的权限运行第三方代码——它可读写文件、使用凭据、访问网络,DSH 的工具审批不会为插件代码加沙箱。「检测到 manifest」仅代表发现 dsh.bundle / dsh.plugin 清单,不构成兼容性或安全审查;安装前请审阅源码,不熟悉的插件先在不含密钥的环境试用。
README
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
参数:
| 参数 | 类型 | 默认 | 说明 |
|---|---|---|---|
type |
string(enum random/diceware) |
random |
生成类型 |
length |
number | 20 |
密码长度(8–128,仅 random) |
count |
number | 1 |
生成数量(1–10) |
words |
number | 5 |
Diceware 单词数(4–8,仅 diceware) |
separator |
string | - |
Diceware 单词连接符 |
includeSymbols |
boolean | true |
是否包含符号(仅 random) |
avoidAmbiguous |
boolean | true |
排除易混淆字符 Il1O0(仅 random) |
返回值(规范 JSON 对象):
{
"ok": true,
"passwords": ["...", "..."],
"type": "random",
"entropyBits": 153.8,
"charset": "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789!@#$%^&*()_+-=[]{}|;:,.<>?",
"count": 2,
"error": ""
}
error 在成功时为空字符串,失败时携带原因。
生成规则
- random:
node: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) = 8bits 熵。 - 生成的密码/口令会出现在工具返回与界面摘要中,请在使用后自行妥善保管,勿与他人分享。
原始 README: https://github.com/ZhijiangTang/dsh-password/blob/main/README.md ↗
同类插件
查看全部 →
dsh-anchored-standard
两阶段 DeepSeek Harness 预设:先 Minimal 对齐的 bootstrap,再切完整 Standard 工具(Project2 98/99)

PicGo-Core
极致的图片上传引擎,CLI 与 API 双支持

awesome-deepseek-harness
DeepSeek Harness(DSH)及其优秀社区插件的精选指南。

awesome-deepseek-harness
DeepSeek Harness (DSH)生态系统:来自dsh-external/hub和公共dsh-plugin主题的精选插件、工具和基础设施。

AI-Novel-Writer
本地优先 AI 小说创作工作台,提供 Windows/macOS 桌面版与 DeepSeek Harness 插件开发预览,支持角色、大纲、章节蓝图、审稿修稿和本地模型。

mcp-for-stata
MCP-for-Stata:把 Stata 集成进你的 agent