Skip to main content

Randsecret

Generate a secure randomly generated secret, that is preserved through restarts.

from randsecret import create_secret

SECRET = create_secret("./test.secret", 32)
>>> b'W;\xd8&\r9\x1e\xc3\xfa\xdc\xa0\xc6\x05+\xde\x84\xd1\x8a\xbe\xcf`-$\xc1\x9d-n\x07P\xa1\x95N'

Deleting A secret

from randsecret import create_secret

create_secret("./test.secret", 32)
>>> b'g\x05\x8d\xd2\x83\x1el\xe3\x05\xbfr\xe0)\x9dn\xe5\xe2X\x14\x0c)\xf1sZ\xad\xb4\xeed\x0c\xd6p\x90'

import os
os.unlink("./test.secret")

create_secret("./test.secret", 32)
>>> b'\x90\xe5\\?%\xab\xba\xbb\xe7,\xf9\xe1\x9e\xa8\x11y\x0f\xce\xc4a\xbd\xbaq}x\x11\xea\x8a\xc9/\x12\xd7'

Metadata

Release files for randsecret 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 randsecret 1.0.0
File Size Uploaded
randsecret-1.0.0.tar.gz 3.7 kB Details

Built distribution (wheel)

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

Total release size: 6.5 kB

Release files / randsecret-1.0.0.tar.gz

Download URL randsecret-1.0.0.tar.gz
Size 3.7 kB
Tags Source
SHA-256 checksum
How to use checksums
cb2a6e44c50f138bbfac9a2def53c9884d51c0e804e8511a4cd94392b68ad180
BLAKE2b-256 checksum
How to use checksums
dde6e9c66264fe47619b0ae6be0e6aea569b84242128220f540ce69ecc36e0b5
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via python-requests/2.28.1

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

Download URL randsecret-1.0.0-py3-none-any.whl
Size 2.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
2eda3d69a4b97aff8a24a3da51887cae09c2ac9da1e605030c6b5538a7af4554
BLAKE2b-256 checksum
How to use checksums
d1819f31b4e9fcc1ccefca7bc519d2974049d3b0a53a2d1d1aa467049e964590
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via python-requests/2.28.1

Release history Release notifications | RSS feed

This release

1.0.0 This release

2 release files

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