Skip to main content

Tools for generating strong passwords

Project description

MyPassword Package

Installation

mypassword requires Python 3.* to work

$ pip install mypassword

or

$ pip3 install mypassword

Default Use

from mypassword import Password

password = Password()

print(password)          # Ex. print xvcpdudi
print(password.password) # Ex. print xvcpdudi

Stronger passwords

There are 4 levels for the password strength level

  1. Level One: Includes only lower case characters
  2. Level Two: Includes lower and upper case characters
  3. Level Three: Includes lower and upper case characters and digits
  4. Level Four: Includes lower and upper case characters, digits and punctuation characters

If you need more security, you can specify the level in the creation of the object

from mypassword import Password, PasswordLevel

password_level_one = Password()
password_level_two = Password(level=PasswordLevel.TWO)
password_level_three = Password(level=PasswordLevel.THREE)
password_level_four = Password(level=PasswordLevel.FOUR)

print(password_level_one)   # Ex. print amzvlepp  
print(password_level_two)   # Ex. print RbHnbpMa
print(password_level_three) # Ex. print 9hS7c1Tw
print(password_level_four)  # Ex. print l8:N7@.1

Length

Additionally you can specify the password length, by default the length is 8

from mypassword import Password, PasswordLevel

password_level_one = Password(length=16)
password_level_four = Password(length=32, level=PasswordLevel.FOUR)

print(password_level_one)   # Ex. print enxhyrpgwecyboyn  
print(password_level_four)  # Ex. print lX7a`DMN$e\09<i|0U93r6Lj7bg1m0Z/

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

mypassword-0.0.1.tar.gz (2.1 kB view details)

Uploaded Source

File details

Details for the file mypassword-0.0.1.tar.gz.

File metadata

  • Download URL: mypassword-0.0.1.tar.gz
  • Upload date:
  • Size: 2.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.1.3 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/3.8.2

File hashes

Hashes for mypassword-0.0.1.tar.gz
Algorithm Hash digest
SHA256 14f46499b00a8e32574f2b68063c1b788cf60ce92c0ca906c08ac45749274e4b
MD5 3276c0e5ab85b75b98168d1ec475b298
BLAKE2b-256 953a1ea8ca9b737b15bfced2362c9b21480700ba05be437bf3f8553146829f9a

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