This is a python package which helps managing passwords.
- It can create random passwords using - createPassword()
- It can do checks for the password's strength using - checkPasswordStrength()
- More features will be added in future
Do pip install psmanager
in your terminal to install the latest version of psmanager.
To use this package, create a .py
file and type import psmanager
or from psmanager import <function name>
.
Generates a 14 characters long random but very strong and hard to guess password for your systems and accounts.
for example :-
import psmanager
password = generatePassword() --> This returns a string
print("Random Generated Password: ",password)
Random Generated Password: xqzlvu03519*bq
Saves your randomly generated password in password.txt
.
for example :-
import psmanager
password = psmanager.generatePassword()
psmanager.savePassword()
On Console
Successfully saved your password in password.txt!
In password.txt
Generated Password: ryixtp44997@nv
Runs a check for password's strength. This returns a tuple (bool, string - "Strong","Moderate" or "Weak")
for example :-
import psmanager
randomPassword = psmanager.generatePassword()
passwordStrength = psmanager.checkPasswordStrength(password) --> This returns a tuple (bool, string)
print(passwordStrength[1]) --> We only need the string, so using index 1
Lets assume that random password generated is password@1xyz
Strong
Lets assume that random password generated is passwd@1xyz
Moderate
Lets assume that random password generated is password@1
Weak
import psmanager
passwordStrength = psmanager.checkPasswordStrength("password here") --> This returns a tuple (bool, string)
if passwordStrength[0]:--> To get the bool -> True or False
print("pass")
else:
print("fail")
Lets assume that the password is passwd@1xyz
a moderate password
pass
Lets assume that the password is passwd@yxz
Not a good password
fail
Copyright(c) 2022 Saaem Faridi
This repository is licensed under the MIT license. See LICENSE for details
.