Skip to main content

sapass

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

print(sapass.generator.get_new_pass(15))

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

```python
from sapass import convertor
```
  1. Hash password with hash_password and validate it hash_password_validate method:
new_pwd = "testPWd"
hashed_password=convertor.convertor.hash_password(new_pwd)
print(hashed_password)
if convertor.convertor.hash_password_validate(hashed_password, new_pwd):
    print('You entered the right password')
else:
    print('I am sorry but the password does not match')
  1. To verify the strength of password using password_strong_check:
print(convertor.password_strong_check("hello"))
print(convertor.convertor.password_strong_check("hello_W0rld"))
Output:
> {'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}

Metadata

Release files for sapass 2.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for sapass 2.2
File Size Uploaded
sapass-2.2.tar.gz 3.1 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for sapass 2.2
File Interpreter ABI Platform
sapass-2.2-py2-none-any.whl Python 2 none any Details

Total release size: 1.7 MB

Release files / sapass-2.2.tar.gz

Download URL sapass-2.2.tar.gz
Size 3.1 kB
Tags Source
SHA-256 checksum
How to use checksums
d81e785fc5261196bd47606749b888182392cef83d22066ff78970958d4cee59
BLAKE2b-256 checksum
How to use checksums
38af0a1e8b051557d7bdf36c3cde76676aa0a42549121fd127f89a0f666e8524
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.11.0 pkginfo/1.4.2 requests/2.19.1 setuptools/40.2.0 requests-toolbelt/0.8.0 tqdm/4.25.0 CPython/2.7.14

Release files / sapass-2.2-py2-none-any.whl

Download URL sapass-2.2-py2-none-any.whl
Size 1.7 MB
Tags Python 2
SHA-256 checksum
How to use checksums
ba8f4ab66b2124ef6dc8d6c254e95cd8d178ea98ccdda7c5d836a92d9e3c01bc
BLAKE2b-256 checksum
How to use checksums
d1322bff62164f2797ddf49f67b2d2aafb54d16ce5eb91829b949f27bb4c4a4e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.11.0 pkginfo/1.4.2 requests/2.19.1 setuptools/40.2.0 requests-toolbelt/0.8.0 tqdm/4.25.0 CPython/2.7.14

Release history Release notifications | RSS feed

This release

2.2 This release

2 release files

2.0

2 release files

1.9

1 release file

1.8

1 release file

1.7

1 release file

1.6

2 release files

1.4

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page