安全、简单、零依赖的随机密钥生成器
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.2.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.2-py3-none-any.whl
(3.9 kB
view details)
File details
Details for the file tcwhk-1.0.2.tar.gz.
File metadata
- Download URL: tcwhk-1.0.2.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 |
8d2f3c3906456fd52163154a79728257c7a30719558a8079afe27f2ec58d28bd
|
|
| MD5 |
062c34c7f68eb8e637f478831dac020d
|
|
| BLAKE2b-256 |
8143d663b5206975afa09a4f255d51663d1cbf6eeebfd7511c4007cdf70d2cb0
|
File details
Details for the file tcwhk-1.0.2-py3-none-any.whl.
File metadata
- Download URL: tcwhk-1.0.2-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 |
d6f89acef693088c6b5f9b71167225c736ec80a07db351fda84c1b4a2f4e98c3
|
|
| MD5 |
32bef1925fe965b2e6d0ecb4c57d807d
|
|
| BLAKE2b-256 |
37e9f2bc1a277483f589323cdfc2f0c427cc74578e2738adf0fa67102edc2930
|