Skip to main content
tcwhk

安全、简单、零依赖的随机密钥生成器。

安装

pip install tcwhk

使用

# 生成默认 20 位密钥
ra

# 指定长度
ra 32

# 32 位,不含符号
ra 32 3

# 纯数字 + 字母,关符号
ra 24 3

# 纯数字,关字母、关符号
ra 16 2 3

# 纯字母,关数字、关符号
ra 16 1 3

# 兼容旧格式
ra generate 32

模式说明

· 1 关闭数字 · 2 关闭字母 · 3 关闭符号

可多模式组合,例如 1 3 表示关闭数字和符号

与 text_discoloration 的关系

tcwhk 的核心功能也集成在 text_discoloration 中:

from text_discoloration import ra_key

ra_key()                    # 默认 20 位
ra_key(length=32)           # 32 位
ra_key(no_symbol=True)      # 不含符号

协议

MIT

Metadata

Release files for tcwhk 1.0.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for tcwhk 1.0.2
File Size Uploaded Provenance Actions
tcwhk-1.0.2.tar.gz 3.3 kB Without provenance Details for tcwhk-1.0.2.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for tcwhk 1.0.2
File Interpreter ABI Platform Actions
tcwhk-1.0.2-py3-none-any.whl Python 3 none any Details for tcwhk-1.0.2-py3-none-any.whl

Total release size: 7.2 kB

Release files / tcwhk-1.0.2.tar.gz

Download URL tcwhk-1.0.2.tar.gz
Size 3.3 kB
Tags Source
SHA-256 checksum
How to use checksums
8d2f3c3906456fd52163154a79728257c7a30719558a8079afe27f2ec58d28bd
BLAKE2b-256 checksum
How to use checksums
8143d663b5206975afa09a4f255d51663d1cbf6eeebfd7511c4007cdf70d2cb0
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.13.13

Release files / tcwhk-1.0.2-py3-none-any.whl

Download URL tcwhk-1.0.2-py3-none-any.whl
Size 3.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
d6f89acef693088c6b5f9b71167225c736ec80a07db351fda84c1b4a2f4e98c3
BLAKE2b-256 checksum
How to use checksums
37e9f2bc1a277483f589323cdfc2f0c427cc74578e2738adf0fa67102edc2930
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.13.13

Security for tcwhk 1.0.2

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

1.0.2 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page