Skip to main content
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

--

Metadata

Release files for ra-generate 1.0.0

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

Source distribution (sdist)

Source distribution for ra-generate 1.0.0
File Size Uploaded Provenance Actions
ra_generate-1.0.0.tar.gz 3.4 kB Without provenance Details for ra_generate-1.0.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for ra-generate 1.0.0
File Interpreter ABI Platform Actions
ra_generate-1.0.0-py3-none-any.whl Python 3 none any Details for ra_generate-1.0.0-py3-none-any.whl

Total release size: 7.5 kB

Release files / ra_generate-1.0.0.tar.gz

Download URL ra_generate-1.0.0.tar.gz
Size 3.4 kB
Tags Source
SHA-256 checksum
How to use checksums
350b6b0a2be77988c3e350b2e59447ffa47b6c3fa6cf9b87e8b2aee5ac1532dc
BLAKE2b-256 checksum
How to use checksums
c8a6faa7cf854aba101188e9de675f71d98c4d7d68289cb903a5ca120183cc2e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.13.13

Release files / ra_generate-1.0.0-py3-none-any.whl

Download URL ra_generate-1.0.0-py3-none-any.whl
Size 4.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
4276cdaa81440255d142679ca6751b729d7aeff38e963a4172a4d5208862eb47
BLAKE2b-256 checksum
How to use checksums
19efe3fc02d0fa71e94e9db58050e5552f6ce354c82b5f955178476a51f5551a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.13.13

Security for ra-generate 1.0.0

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.0 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