Skip to main content

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


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)

Uploaded Source

Built Distribution

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

secretting-1.6.0-py3-none-any.whl (3.1 kB view details)

Uploaded Python 3

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

Hashes for secretting-1.6.0.tar.gz
Algorithm Hash digest
SHA256 454eabeba660125c9f64843592b6d029bf9aa54a830e65f8b05279350a7e7ea5
MD5 f358509acf215ebf7ac5f00ed469999f
BLAKE2b-256 e20af46190c0a2fd428cb344af6eaaa37b67b89fc991dc9cda42a85aa686a9b2

See more details on using hashes here.

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

Hashes for secretting-1.6.0-py3-none-any.whl
Algorithm Hash digest
SHA256 cfb308c4812e19f0c8a6a59c9717e482466f3cf7e2bf8f505f31e7c3cf333d3f
MD5 9d35203848717eabad9c7c8b4cfb5264
BLAKE2b-256 a73467dd663dc4da8661ebe39285de3ab0fd4ff3fe70e835dc69ba2f6c311de2

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