Skip to main content

A password/passphrase generator that uses Chinese pinyin

Project description

ppgen

一个基于汉语拼音的密码/密码短语生成器。它可以生成易记的强密码,同时提供中文记忆提示。

特性

  • 支持两种密码生成模式:
    • 复杂密码:使用拼音组合,并添加特殊字符和数字
    • 密码短语:使用多个拼音词组,通过连字符连接
  • 为每个生成的密码提供中文和拼音的记忆提示
  • 支持密码强度评估
  • 支持文本和JSON输出格式
  • 可配置参数:最小长度、词数量、生成数量等

安装

pip install ppgen

使用方法

基本用法

生成密码短语(默认模式):

ppgen

生成复杂密码:

ppgen --password

常用选项

  • -p, --password: 生成复杂密码而不是密码短语
  • -c, --count: 生成密码的数量(默认:5)
  • -l, --min_length: 密码最小长度(默认:12)
  • -w, --word_count: 密码短语模式下使用的拼音词数量(默认:4)
  • -o, --output: 输出格式,可选 text 或 json(默认:text)

示例

生成3个密码短语:

ppgen -c 3

生成最小长度为15的复杂密码:

ppgen -p -l 15

使用5个词生成密码短语:

ppgen -w 5

JSON格式输出:

ppgen -o json

输出示例

文本格式输出:

密码: zhongwen-yuyan-jisuanji-ruanjian
强度: 4
记忆提示: 中文(zhongwen)-语言(yuyan)-计算机(jisuanji)-软件(ruanjian)
---

JSON格式输出:

[
  {
    "password": "zhongwen-yuyan-jisuanji-ruanjian",
    "strength": 4,
    "hints": "中文(zhongwen)-语言(yuyan)-计算机(jisuanji)-软件(ruanjian)"
  }
]

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

ppgen-0.1.0.tar.gz (624.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

ppgen-0.1.0-py3-none-any.whl (624.0 kB view details)

Uploaded Python 3

File details

Details for the file ppgen-0.1.0.tar.gz.

File metadata

  • Download URL: ppgen-0.1.0.tar.gz
  • Upload date:
  • Size: 624.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.11.3

File hashes

Hashes for ppgen-0.1.0.tar.gz
Algorithm Hash digest
SHA256 9351b8a0eeedf58603dd500fae83fe70a26f94e6512d3f1b7ae7d405a9f70cbc
MD5 06f53ac68f2f2be4cfb165d78617096f
BLAKE2b-256 336de0aef8e74e37138ff3446ae338418cba8360fe2c60b36dc55001bc4244b9

See more details on using hashes here.

File details

Details for the file ppgen-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: ppgen-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 624.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.11.3

File hashes

Hashes for ppgen-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 f24f4981477c788abe3598a036ac4de9bafca4445038a7a0c15b8f6837cdfd7b
MD5 9507aa84df0ab6ae7b177239f0369148
BLAKE2b-256 adff182b35b79a683b2e74d929970b0b500e3529d0828d71742ebec543ec1b6a

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page