Skip to main content

Analyze passwords' memorizability and generate pronounceable words.

Project description

Pronounceable

Build Status PyPI version shields.io PyPI license

  • Generate a random pronounceable word using Python 3 and secrets module (falls back to random module if Python < 3.6).
  • Calculate password complexity based on pronounceablity. > 10.0 is probably too complex for human to remember.

Usage

>>> from pronounceable import PronounceableWord, generate_word, Pronounceablity, Complexity
>>> PronounceableWord().length(8, 15)
'terhtsadathe'
>>> generate_word()
'gloust'
>>> pr = Pronounceablity()
>>> pr.syllable('terhtsadathe')
6
>>> pr.syllable('hello')
2
>>> pr.syllable('gloust')
4
>>> complexity = Complexity()
>>> complexity.complexity('D7!rcc&umnsd')
5.401603904395188
>>> complexity.complexity('a4ILot#h')
4.71785657472491
>>> complexity.complexity('password')
1.0
>>> complexity.complexity('thisisabadpassword')
2.2220669581020354
>>> complexity.complexity('anejpwnrqpqzonijre')
4.71785657472491

Based on

More on password

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 pronounceable, version 0.1.3
Filename, size File type Python version Upload date Hashes
Filename, size pronounceable-0.1.3-py3-none-any.whl (44.8 kB) File type Wheel Python version py3 Upload date Hashes View
Filename, size pronounceable-0.1.3.tar.gz (45.5 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page