Skip to main content

A simple password manager for Python

Project description

PSmanager Release 0.0.3

This is a python package which helps managing passwords.

Features

  • It can create random passwords using - createPassword()
  • It can do checks for the password's strength using - checkPasswordStrength()
  • It can save passwords securely using - savePassword()
  • More features will be added in future

Update

  • Fixed Bugs in checkPasswordStrength()
  • Updated method used for generating strong passwords.

Installation

Do pip install psmanager in your terminal to install the latest version of psmanager.

How to use it?

To use this package, create a .py file and type import psmanager or from psmanager import <function name>.

generatePassword()

Generates a 14 characters long random but very strong and hard to guess password for your systems and accounts.

for example :-

Code

import psmanager
password = psmanager.generatePassword()  # This returns a string

print("Random Generated Password: ", password)

Output

Random Generated Password: xqzlvu03519*bq

savePassword()

Saves your randomly generated password in password.txt.

for example :-

Code

import psmanager
password = psmanager.generatePassword()
psmanager.savePassword(password)

Output

On Console

Successfully saved your password in password.txt!

In password.txt

Generated Password: ryixtp44997@nv

checkPasswordStrength()

Runs a check for password's strength. This returns a tuple (bool, string - "Strong", "Moderate" or "Weak")

for example :-

1)

Code

import psmanager
randomPassword = psmanager.generatePassword()
passwordStrength = psmanager.checkPasswordStrength(randomPassword)  # This returns a tuple (bool, string)

print(passwordStrength[1])  # We only need the string, so using index 1

Output

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

2)

Code

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")

Output

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

License

Copyright(c) 2022 Saaem Faridi

This repository is licensed under the MIT license. See LICENSE for details.

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

psmanager-0.0.3.tar.gz (3.9 kB view details)

Uploaded Source

Built Distribution

psmanager-0.0.3-py3-none-any.whl (4.6 kB view details)

Uploaded Python 3

File details

Details for the file psmanager-0.0.3.tar.gz.

File metadata

  • Download URL: psmanager-0.0.3.tar.gz
  • Upload date:
  • Size: 3.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.2

File hashes

Hashes for psmanager-0.0.3.tar.gz
Algorithm Hash digest
SHA256 9ab37ef2e412646263bc535c3f248487d903463a195170d0a8ef39f01498d3cf
MD5 a661443ea553c7f1882e89e153149783
BLAKE2b-256 ea5748674da8203f58427b2ed59c33313688def41b3c3485a63d5dd55614d7a9

See more details on using hashes here.

File details

Details for the file psmanager-0.0.3-py3-none-any.whl.

File metadata

  • Download URL: psmanager-0.0.3-py3-none-any.whl
  • Upload date:
  • Size: 4.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.2

File hashes

Hashes for psmanager-0.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 5c22438d776cb2c980664da5224205caaa3057699521dbd84d406c1b9590e128
MD5 680088d18b4b3f6af4ca098a5e507bc4
BLAKE2b-256 2a8eb16475f02b8da9b14d8667d6d0ede2feb212a6137e4a5b25741893f252b8

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page