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
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)
| File | Size | Uploaded | |
|---|---|---|---|
| tcwhk-1.0.2.tar.gz | 3.3 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| tcwhk-1.0.2-py3-none-any.whl | Python 3 | none | any | Details |
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
|