Skip to main content

create random password with varies passcode set

Project description

PasswordGenerator

PyPI version Build Status Updates

Password Generator

based on Perfect Paper Passwords

High security multifactor authentication password generator.

standard passcode set

This is the standard and conservative PPP set of 64 characters. It was chosen to remove characters that might be confused with one another. Using 4-characters per passcode, 16,777,216 passcodes are possible for very good one time password security

passcode_set = '!#%+23456789=?@ABCDEFGHJKLMNPRSTUVWXYZabcdefghijkmnopqrstuvwxyz'

example:

use standard set to create password length = 10, with 3 uppercases, 3 digits and 1 symbol

from pyPasswordGenerator import password as ps
# standard set
set = 's' 
ps.generator(length = 10, upper = 3, digits =3, symbol = 0, set =set  )
>>>'5v5njx9BAN'

visually aggressive passcode set

This is a much more "visually aggressive" (somewhat more interesting and certainly much stronger) 88-character alphabet which supports the generation of 59,969,536 possible 4-character passcodes:

passcode_set = '''!"#$%&'()*+,-./23456789:;<=>?@ABCDEFGHJKLMNOPRSTUVWXYZ[]^_abcdefghijkmnopqrstuvwxyz{|}~'''

example

use standard set to create password length = 8, with 2 uppercases, 2 digits and 2 symbol

from pyPasswordGenerator import password as ps
# visually aggressive set
set = 'v' 
ps.generator(length = 8, upper = 2, digits =2, symbol = 2, set =set  )
>>>'sX65%A^g'

use won set to limit symbol with only !#@

use your set create password length = 12, with 4 uppercases, 2 digits and 2 symbols

from pyPasswordGenerator import password as ps

# my own password set
set = '!#23456789@ABCDEFGHJKLMNPRSTUVWXYZabcdefghijkmnopqrstuvwxyz'
ps.generator(length = 11, upper = 4, digits =2, symbol = 2, set =set  )
>>>'@F8Wa#jRn6S'

Definition

Parameter Default Description
length 8 Length of Password, if length = 10 then xdat3a9$dg
upper 2 How many upper case charactors, if upper =4 GdAT3a9$Dg
digits 2 How many digits, if digits = 1 GdAT3ad$Dg
symbol 0 How many symbol if symbol=4 G#A!3a9$D!
passcode_set s v

installation

pip install pyPasswordGenerator

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

pyPasswordGenerator-1.0.2.tar.gz (3.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pyPasswordGenerator-1.0.2-py3-none-any.whl (4.8 kB view details)

Uploaded Python 3

File details

Details for the file pyPasswordGenerator-1.0.2.tar.gz.

File metadata

  • Download URL: pyPasswordGenerator-1.0.2.tar.gz
  • Upload date:
  • Size: 3.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.50.0 CPython/3.8.6rc1

File hashes

Hashes for pyPasswordGenerator-1.0.2.tar.gz
Algorithm Hash digest
SHA256 58303930a59306fb3f06cd710fb373ad73b6429781b7b48bffd11425aa5bbc43
MD5 cf87fa5ee81fb2b34a5f2e1d8dbf70d0
BLAKE2b-256 8c3f1deab6679b40441e34237fbbd12997fff30d3ed89de45cbe97b4523f21bb

See more details on using hashes here.

File details

Details for the file pyPasswordGenerator-1.0.2-py3-none-any.whl.

File metadata

  • Download URL: pyPasswordGenerator-1.0.2-py3-none-any.whl
  • Upload date:
  • Size: 4.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.50.0 CPython/3.8.6rc1

File hashes

Hashes for pyPasswordGenerator-1.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 2871c4a8ee7b119d42dbb11013b32c63551d7df5ab605c5a02fc58f1dc9f5a5c
MD5 bba95b59b6c8fc64ab3c3c865fb79382
BLAKE2b-256 9833ea88425f266d5c6e34d4091ea4c9a648dc2f07d005cb4fe62d9e94ac0073

See more details on using hashes here.

Supported by

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