Skip to main content

base64_random

Generates a base 64 random number of an arbitrary length.

base64_random uses Python's secrets module to generate the random numbers, so you should be able to generate high quality random numbers when using this library. That said, I cannot recommend that this library be used in contexts where high-quality random numbers are used to secure sensitive information. Please use a suitable cryptography library for contexts where you need to protect information.

Please also note, that as of the time of writing, this library provides NO SUPPORT for Base64 encoding or decoding. Additionally, this library generates numbers in base 64, it has no relation to the Base64 encoding format.

Usage

There are two main ways to use this package, command line invocation and importing the module.

Command Line Invocation

Command line usage is quite easy, simply pass the module the length of number you wish to generate:

python -m base64_random 10

Or, by invoking the shell script:

b64r 10

Python module usage

You can also import this module in your code to use it:

from base64_random import gen_random_base64

base64_number = gen_random_base64(10)

print(base64_number)

Installation

base64_random is available on pip!

pip install base64_random

You can also install base64_random directly from git, but please refer to the official documentation for the details of how to do that.

Metadata

Release files for base64-random 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 base64-random 1.0.0
File Size Uploaded Provenance Actions
base64_random-1.0.0.tar.gz 2.7 MB Without provenance Details for base64_random-1.0.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for base64-random 1.0.0
File Interpreter ABI Platform Actions
base64_random-1.0.0-py2.py3-none-any.whl Python 3, Python 2 none any Details for base64_random-1.0.0-py2.py3-none-any.whl

Total release size: 2.7 MB

Release files / base64_random-1.0.0.tar.gz

Download URL base64_random-1.0.0.tar.gz
Size 2.7 MB
Tags Source
SHA-256 checksum
How to use checksums
a9b84298a40d39221c4000474f68875669907609352cbc9d256f6f0e878802ab
BLAKE2b-256 checksum
How to use checksums
42bf63e1424db68cf158b2d4f8c5a405bfab07ab529c592b07db1c0cf9b696bd
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.11.2

Release files / base64_random-1.0.0-py2.py3-none-any.whl

Download URL base64_random-1.0.0-py2.py3-none-any.whl
Size 4.4 kB
Tags Python 2 Python 3
SHA-256 checksum
How to use checksums
6da760ab92e85319de50e29b6ccc355b539b78107ee276e988f46277fb71887b
BLAKE2b-256 checksum
How to use checksums
2a61e39074ac9e8f50343f04679bf69c4b57491b459e19fa8d1d23c517a3fbce
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.11.2

Security for base64-random 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