安全、简单、零依赖的随机密钥生成器
Project description
ra_generate
安全、简单、零依赖的随机密钥生成器。
安装
pip install ra-generate
使用
# 生成默认 20 位密钥
ra generate
# 指定长度
ra generate 32
# 32 位,不含符号
ra generate 32 3
# 纯数字 + 字母 关符号
ra generate 24 3
# 纯数字 关字母、关符号
ra generate 16 2 3
# 纯字母 关数字、关符号
ra generate 16 1 3
参数说明
模式 含义
- 1 关闭数字
- 2 关闭字母
- 3 关闭符号
##可以多模式组合,例如 1 3 表示关闭数字和符号
与 text_discoloration 的关系
ra_generate 也作为函数集成在 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
ra_generate-1.0.0.tar.gz
(3.4 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
File details
Details for the file ra_generate-1.0.0.tar.gz.
File metadata
- Download URL: ra_generate-1.0.0.tar.gz
- Upload date:
- Size: 3.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
350b6b0a2be77988c3e350b2e59447ffa47b6c3fa6cf9b87e8b2aee5ac1532dc
|
|
| MD5 |
a9fa72bb8d7504d3d6a59f3ecc05a827
|
|
| BLAKE2b-256 |
c8a6faa7cf854aba101188e9de675f71d98c4d7d68289cb903a5ca120183cc2e
|
File details
Details for the file ra_generate-1.0.0-py3-none-any.whl.
File metadata
- Download URL: ra_generate-1.0.0-py3-none-any.whl
- Upload date:
- Size: 4.1 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 |
4276cdaa81440255d142679ca6751b729d7aeff38e963a4172a4d5208862eb47
|
|
| MD5 |
7ee88465ca8bd077224de0da93910b8a
|
|
| BLAKE2b-256 |
19efe3fc02d0fa71e94e9db58050e5552f6ce354c82b5f955178476a51f5551a
|