More secrets and randoms!
Project description
Secretting 1.6.0
More secrets and randoms!
Installation:
pip install secreting
If wont work:
pip3 install secreting
Or:
pip install --upgrade secreting
Example:
salt() # Output: salt
sha256("a") # Output: hash
secure256("a") # Output: (hash, salt)
isEqual(1, 1) # Output: True
isEqual(1, 2) # Output: False
chars # Output: (ascii_letters, digits, punctuation)
tokenHex(32) # Output: token with 32 bytes
# And more nice tools!
Libs:
Secrets (choice, compare_digest)
Random (shuffle, random, randint)
String (ascii_letters, digits, punctuation)
Hashlib (sha256, sha512)
Github
My github account
Random scheme
Secretting uses Chaos 20 system
How it works:
import random
def x_or_o():
return random.choice(["x", "o"])
def chaos20system(func):
return random.choice([func() for _ in range(20)]) # It can be anything. Example: ["x", "x", "o", "x", "o", "o", ...]
print(chaos20system(x_or_o)) # It is more random than classic choice.
Enjoy it!
hi
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
secretting-1.6.0.tar.gz
(2.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 secretting-1.6.0.tar.gz.
File metadata
- Download URL: secretting-1.6.0.tar.gz
- Upload date:
- Size: 2.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
454eabeba660125c9f64843592b6d029bf9aa54a830e65f8b05279350a7e7ea5
|
|
| MD5 |
f358509acf215ebf7ac5f00ed469999f
|
|
| BLAKE2b-256 |
e20af46190c0a2fd428cb344af6eaaa37b67b89fc991dc9cda42a85aa686a9b2
|
File details
Details for the file secretting-1.6.0-py3-none-any.whl.
File metadata
- Download URL: secretting-1.6.0-py3-none-any.whl
- Upload date:
- Size: 3.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
cfb308c4812e19f0c8a6a59c9717e482466f3cf7e2bf8f505f31e7c3cf333d3f
|
|
| MD5 |
9d35203848717eabad9c7c8b4cfb5264
|
|
| BLAKE2b-256 |
a73467dd663dc4da8661ebe39285de3ab0fd4ff3fe70e835dc69ba2f6c311de2
|