Skip to main content

More secrets and randoms!

Project description

Secretting 1.11.1

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)

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.1.tar.gz (3.0 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.1-py3-none-any.whl (3.4 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: secretting-1.11.1.tar.gz
  • Upload date:
  • Size: 3.0 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.1.tar.gz
Algorithm Hash digest
SHA256 0931e26cc152de751d018d427b1928b99e8dc0e910e7a892077f5487fa00850c
MD5 26faed0de37b6cc6f9bab84e0a67fc2c
BLAKE2b-256 fdad54c10b74a180666d5b9e25c58a78892116836500f23cbd412603a873f2b8

See more details on using hashes here.

File details

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

File metadata

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

Hashes for secretting-1.11.1-py3-none-any.whl
Algorithm Hash digest
SHA256 667e2b91da69a7a39a439a1377c081c107541ee1d76e97307a900e27b47f1d4a
MD5 da2a50ff75abfd1432695705dc99617c
BLAKE2b-256 674f4cdfb2007c7f2d5650d123b93ca455ab0fe7fc2a975af80b2ec44110dc64

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