Skip to main content

Is your password safe?

Project description

Is your password safe? Safe will check the password strength for you.

https://travis-ci.org/lepture/safe.png?branch=master

How it works

Safe will check if the password has a simple pattern, for instance:

  1. password is in the order on your QWERT keyboards.

  2. password is simple alphabet step by step, such as: abcd, 1357

Safe will check if the password is a common used password. Many thanks to Mark Burnett for the great work on 10000 Top Passwords.

Safe will check if the password has mixed number, alphabet, marks.

Installation

Install Safe with pip:

$ pip install Safe

If pip is not available, try easy_install:

$ easy_install Safe

Usage

It’s very simple to check the strength of a password:

>>> import safe
>>> safe.check(1)
terrible
>>> safe.check('password')
simpile
>>> safe.check('is.safe')
medium
>>> safe.check('x*V-92Ba')
strong
>>> strength = safe.check('x*V-92Ba')
>>> bool(strength)
True
>>> repr(strength)
'strong'
>>> str(strength)
'password is perfect'
>>> strength.valid
True
>>> strength.strength
'strong'
>>> strength.message
'good password'

Environ Variables

  1. PYTHON_SAFE_WORDS_CACHE: cache words in this file, default is a tempfile

  2. PYTHON_SAFE_WORDS_FILE: words vocabulary file, default is the 10k top passwords

Other Implementations

  1. JavaScript: lepture/safe.js

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

Safe-0.4.tar.gz (56.8 kB view details)

Uploaded Source

Built Distribution

Safe-0.4-py2-none-any.whl (56.0 kB view details)

Uploaded Python 2

File details

Details for the file Safe-0.4.tar.gz.

File metadata

  • Download URL: Safe-0.4.tar.gz
  • Upload date:
  • Size: 56.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for Safe-0.4.tar.gz
Algorithm Hash digest
SHA256 a2fdac9fe8a9dcf02b438201d6ce0b7be78f85dc6492d03edfb89be2adf489de
MD5 670ef3588b98f878dd1b38b13d8f677d
BLAKE2b-256 d23dea0fa7a262431f4b94845df59637bbb4ccac9d03a696ca1d894631da8614

See more details on using hashes here.

File details

Details for the file Safe-0.4-py2-none-any.whl.

File metadata

File hashes

Hashes for Safe-0.4-py2-none-any.whl
Algorithm Hash digest
SHA256 4e7315087d80fdbbc781362a656376cfa273c5c68a8abc0412e159bf541fcbda
MD5 66ec4c9459859f2af767d821cd6a7cf6
BLAKE2b-256 6e1928e04729954cd3c401ad09aabf14bf896a9e5b112f7d56bc7ea2617a7b36

See more details on using hashes here.

Supported by

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