Skip to main content

Generate Slot Counter

Project description

xslots

Example usage: Crack an n-digit code

from datetime import timedelta
import time

from xslots import Slots

slots = Slots(4, 0, 9, 0)
password = "939614"

start = time.time()
while True:
    print(slots)
    s = "".join(str(slots)))
    
    if s == password:
        end = time.time()
        print(f"Hacked code {s} in {timedelta(seconds = end - start)}")
        break
    
    slots.increase()

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

xslots-0.0.1-py3-none-any.whl (1.6 kB view details)

Uploaded Python 3

File details

Details for the file xslots-0.0.1-py3-none-any.whl.

File metadata

  • Download URL: xslots-0.0.1-py3-none-any.whl
  • Upload date:
  • Size: 1.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.6.0 importlib_metadata/4.8.2 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.7

File hashes

Hashes for xslots-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 41448118d6137eb4d6256e9f7da54a5fefa94771ff579e08a1a68707c2d8cad1
MD5 72c0a22fefa94f995ab7e3e6aff0b66c
BLAKE2b-256 bccbccdd99f04932906c3f3711c95102dfcbf037e994d517db4bf7ab65089532

See more details on using hashes here.

Supported by

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