Skip to main content

More secrets and randoms!

Project description

Secretting 1.11.1

More secrets and randoms!

Installation:

pip install secretting

If wont work:

pip3 install secretting

Or:

pip install --upgrade secretting

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


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.2.tar.gz (3.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

secretting-1.11.2-py3-none-any.whl (3.6 kB view details)

Uploaded Python 3

File details

Details for the file secretting-1.11.2.tar.gz.

File metadata

  • Download URL: secretting-1.11.2.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

Hashes for secretting-1.11.2.tar.gz
Algorithm Hash digest
SHA256 2ba2d7645f6fa43ea6a477dc501ec9c09323a9df4c24ca2b54ecd51d65d6a5d1
MD5 0cb24fb5e301faf268ed5eb4e98c22c4
BLAKE2b-256 fd5d6f3a8d55763e2a2df254e26fb2982b4e5f79dd576833bfd9ead666302007

See more details on using hashes here.

File details

Details for the file secretting-1.11.2-py3-none-any.whl.

File metadata

  • Download URL: secretting-1.11.2-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

Hashes for secretting-1.11.2-py3-none-any.whl
Algorithm Hash digest
SHA256 5ba3335beb031f6454a15a09c616ef46dd9da44eb87f5aad7c83f461249ab140
MD5 c871b84152cf3ae06e97bd2ae0eacade
BLAKE2b-256 dbb6eb5441683736299a7965236a0cf13c2f33ea14432bf9d3f7e5506ace7317

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page