More secrets and randoms!
Project description
Secretting 1.11.5
More secrets and randoms!
Installation:
pip install secretting==1.11.5
If wont work:
pip3 install secretting==1.11.5
Example:
from secretting import *
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)
GetPass (getpass)
Typing (any)
Github
My github account
Random scheme
Secretting uses Chaos 20 system
How it works:
import secrets
def x_or_o():
return secrets.choice(["x", "o"])
def chaos20system(func, *args, **kwargs):
return secrets.choice([func(*args, **kwargs) for _ in range(20)])
# This is list of 20 funcs.
# Returns 1 random of this list.
# It is more random than secrets.choice and random.choice.
# Secretting made by only this scheme.
# And yeah its made by me.
# You can copy this scheme :-)
# :-) :-) :-) :-) :-) :-) :-) :-) :-)
# :-) :-) :-) :-) :-) :-) :-) :-) :-)
# :-) :-) :-) :-) :-) :-) :-) :-) :-)
# :-) :-) :-) :-) :-) :-) :-) :-) :-)
# :-) :-) :-) :-) :-) :-) :-) :-) :-)
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.11.5.tar.gz
(3.3 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.11.5.tar.gz.
File metadata
- Download URL: secretting-1.11.5.tar.gz
- Upload date:
- Size: 3.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f3c767a6082fa17591f3e57fab1cde4cfcefc58dc9a96f9ec75eeb68ad2c111c
|
|
| MD5 |
82002e07422e0e089926b44eef530f5f
|
|
| BLAKE2b-256 |
cf50332d905abcb5cd79239267adad639f3e2bb4a307ea68926c27071fde1105
|
File details
Details for the file secretting-1.11.5-py3-none-any.whl.
File metadata
- Download URL: secretting-1.11.5-py3-none-any.whl
- Upload date:
- Size: 3.6 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 |
b17d74c2889714bff0a363cab39f0f33e4468061e4576cc30da086dd20155e8a
|
|
| MD5 |
8593d52f35afd58af5f4b79e8abcd9b0
|
|
| BLAKE2b-256 |
a0b67583abdf0f7c1789af31192c1d4ef19571a8b7223d103dc494d3bdce2149
|