Skip to main content

With this module you can easy generate password in python projects

Project description


First version of password generator for python projects

Easy to install and easier to use

Use python version bigger than 2.7

For generate new password: :-1:

from sapass import sapass


you can use below parameters for class inputs

  1. length Default length for password defined 8 character, by change this value you get new pass with another size.
  2. passType
    passType = {'mix', # alphabet + numbers + symbols
            'alphabet', # only alphabet
            'number', # only numbers
  3. includeSymbol Boolean parameter: if define 'True' generated password contains special characters such as {!@#$%^&*()}
  4. includeUppercaseCharacters Boolean parameter: if define 'True' generated password contains uppercase characters such as {ABCDEFGHIJ...}

For convert password: :new: Added In version 2.0

You must use convertor class

from sapass import convertor
  1. Hash password with hash_password and validate it hash_password_validate method:
new_pwd = "testPWd"
if convertor.convertor.hash_password_validate(hashed_password, new_pwd):
    print('You entered the right password')
    print('I am sorry but the password does not match')
  1. To verify the strength of password using password_strong_check:
> {'symbol_error': True, 'digit_error': True, 'lowercase_error': False, 'uppercase_error': True, 'length_error': True, 'password_ok': False}

> {'symbol_error': False, 'digit_error': False, 'lowercase_error': False, 'uppercase_error': False, 'length_error': False, 'password_ok': True}

Project details

Download files

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

Files for sapass, version 2.2
Filename, size File type Python version Upload date Hashes
Filename, size sapass-2.2.tar.gz (3.1 kB) File type Source Python version None Upload date Hashes View
Filename, size sapass-2.2-py2-none-any.whl (1.7 MB) File type Wheel Python version py2 Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor NVIDIA NVIDIA PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page