More secrets and randoms!
Project description
Secretting 1.7.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 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.7.0.tar.gz
(2.7 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.7.0.tar.gz.
File metadata
- Download URL: secretting-1.7.0.tar.gz
- Upload date:
- Size: 2.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ec82d81fac9594221d5af2b2b3b7e36ad65598a275c8f275f466cd7f996a458a
|
|
| MD5 |
837a09a10032377ddbae8d11690a8064
|
|
| BLAKE2b-256 |
2a9931f2aa6f483b491da8de2d2d1576387118fe2fa85da4bff84f2f399031d0
|
File details
Details for the file secretting-1.7.0-py3-none-any.whl.
File metadata
- Download URL: secretting-1.7.0-py3-none-any.whl
- Upload date:
- Size: 3.4 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 |
6409d30ef4352a387d3f8f09ac043b9c13aea9dee81bd02b318c4ea6e3d7065a
|
|
| MD5 |
c38a23b380d1e824e3f97c0576e0c16e
|
|
| BLAKE2b-256 |
548dccd05124c5c7e51767640b605ca1c0af8b868e7a25319570473af691661a
|