Skip to main content

Effortlessly generate random passwords of custom lengths.

Project description

ironhawks-keygen

IronHawks KeyGen v0.2.1

Effortlessly generate random passwords of custom lengths.

Uses Alphabets(Upper and Lower cases), Digits(0-9) and Special Characters/Punctuations(!"#$%&'()*+,-./:;<=>?@[]^_`{|}~) of the 'string' standard library and the 'random' standard library for the random character picking.

The available Strategies are:

  1. Generate using Alphabets only.
  2. Generate using Digits only.
  3. Generate using Alphabets and Digits only.
  4. Generate using Alphabets and Special Characters only.
  5. Generate using Digits and Special Characters only.
  6. Generate using Alphabets, Digits and Special Characters.

The Constants used are:

  1. ALPHABETS - String having all Lower and Upper cases alphabets.
  2. DIGITS - String having digits from 0 to 9.
  3. SPECIAL_CHARACTERS - String having a selection of punctuation characters that are present on standard US keyboard and frequently used in passwords.
  4. STRING_POOL - A dictionary having the possible startegies, where the keys represent the Strategy Number and their values represent the respective Strategy String used for password generation.

The generate() function has three optional parameters which are,

  1. strategy_number - The corresponding number key to the strategy specified in the STRING_POOL dictionary. Default value is 6 for its robustness.
  2. password_length - The preferred length of the password string to be generated. Minimum is 8 and Maximum is 128. Recommended is 12 to 15 characters.
  3. strict - Takes boolean(True/False). Enables Strict mode for Strategies 3 to 6, as Strategies 1 and 2 are always strict. Strict mode refers to the condition by which the randomness in generation always happens as preferred. For example, Strategy 3 may produce only digits or alphabets as it is randomly generated and thus, strict mode ensures there is atleast one digit or one alphabet in the generated password.

The generate() returns the generated password string or None if either strategy_number or password_length do not fall in the ranges [1,6] and [8,128] respectively.

The get_doc() function returns this whole docstring, if wanted.

Check out the included Example file(example.py).

Created by Praveen K. Contact: hartbrkrlegacy@gmail.com

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

ironhawks-keygen-0.2.1.tar.gz (5.1 kB view details)

Uploaded Source

File details

Details for the file ironhawks-keygen-0.2.1.tar.gz.

File metadata

  • Download URL: ironhawks-keygen-0.2.1.tar.gz
  • Upload date:
  • Size: 5.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/32.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.62.3 importlib-metadata/4.10.1 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.8.10

File hashes

Hashes for ironhawks-keygen-0.2.1.tar.gz
Algorithm Hash digest
SHA256 0b1aa89e7bf9af55f7a62f05d78b812259df5514f6c9d00c63ea93f1ae5dd5d9
MD5 7660b17fc2cb73805eeceeb60b23a739
BLAKE2b-256 3c0366e2bdcd922e94349af1a4ddff70b31ad7f5d97fde848b5fbccd1d8f5ced

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