360 Secure SkillHub
360 安全技能中心

Password Generator

通过 python scripts/generate.py 在本地生成随机密码、PIN 与可记忆口令短语,支持自定义长度、字符类型、排除字符、词数与批量生成,声明使用 os.urandom 提供安全随机数;不涉及密码存储、强度评估或泄露检测。

分类:安全
dinghaibin
dinghaibin
热度 21.04
最近更新 2026-05-18 11:48:15

安装

发给 Agent
帮我安装这个技能:npx secure-skills-cli add dinghaibin/dinghaibin-password-generator
兼容性
通用兼容
联网要求
不联网
数据出网
数据不出本机
Metadata
name
password-generator
description
Generate secure passwords and passphrases. Use when user needs to create strong passwords, generate secure tokens, create PINs, or generate memorable passphrases.

Password Generator

Generate secure passwords and passphrases.

Quick Start

# Generate random password
python scripts/generate.py

# Specific length
python scripts/generate.py --length 16

Usage

python scripts/generate.py [OPTIONS]

Options:
  --length NUM       Password length (default: 16)
  --numbers          Include numbers
  --symbols          Include special symbols
  --uppercase        Include uppercase letters
  --exclude CHARS   Exclude specific characters
  --pin              Generate PIN (4-6 digits)
  --passphrase       Generate passphrase
  --words NUM        Words in passphrase (default: 4)
  --count NUM        Number of passwords to generate

Examples

# Simple password
python scripts/generate.py

# Strong password with all character types
python scripts/generate.py --length 20 --numbers --symbols --uppercase

# PIN code
python scripts/generate.py --pin

# Memorable passphrase
python scripts/generate.py --passphrase

# Multiple passwords
python scripts/generate.py --count 5

Features

  • Random password generation
  • Configurable character sets
  • PIN generation
  • Passphrase generation
  • Multiple password generation
  • Secure random (os.urandom)