Skip to main content
This is a pre-production deployment of Warehouse. Changes made here affect the production instance of PyPI (
Help us improve Python packaging - Donate today!

Is your password safe?

Project Description

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

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.


Install Safe with pip:

$ pip install Safe

If pip is not available, try easy_install:

$ easy_install Safe


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

>>> import safe
>>> safe.check(1)
>>> safe.check('password')
>>> safe.check('')
>>> safe.check('x*V-92Ba')
>>> strength = safe.check('x*V-92Ba')
>>> bool(strength)
>>> repr(strength)
>>> str(strength)
'password is perfect'
>>> strength.valid
>>> strength.strength
>>> 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
Release History

Release History

This version
History Node


History Node


History Node


History Node


Download Files

Download Files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

File Name & Checksum SHA256 Checksum Help Version File Type Upload Date
Safe-0.4-py2-none-any.whl (56.0 kB) Copy SHA256 Checksum SHA256 2.7 Wheel Nov 8, 2015
Safe-0.4.tar.gz (56.8 kB) Copy SHA256 Checksum SHA256 Source Nov 8, 2015

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting