安全、简单、零依赖的随机密钥生成器
Project description
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
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
tcwhk-1.0.1.tar.gz
(3.3 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
tcwhk-1.0.1-py3-none-any.whl
(3.9 kB
view details)
File details
Details for the file tcwhk-1.0.1.tar.gz.
File metadata
- Download URL: tcwhk-1.0.1.tar.gz
- Upload date:
- Size: 3.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7947e7617f83f0df7ee55d4a278b52f746e475dbff020712be3b015ef28f137b
|
|
| MD5 |
83ac93f1d3795fbcebd922e8f2d33971
|
|
| BLAKE2b-256 |
a771eb4e0b8988bd2277ca02b336edf11f54865126aac57264ee0c956e8fa583
|
File details
Details for the file tcwhk-1.0.1-py3-none-any.whl.
File metadata
- Download URL: tcwhk-1.0.1-py3-none-any.whl
- Upload date:
- Size: 3.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
88cd1bdc743d352df9cfc8f08a2139866e9f444cc91b8a6e0d3d0a42e754f044
|
|
| MD5 |
92529b88ae83dcf6affb75e5e4d107f3
|
|
| BLAKE2b-256 |
bd6a5fe33289382792c40122a13708886c928287c33372e3fdc3edc1d5b7d459
|