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:
password is in the order on your QWERT keyboards.
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.safety(1) terrible >>> safe.safety('password') simpile >>> safe.safety('is.safe') medium >>> safe.safety('x*V-92Ba') strong >>> strength = safe.safety('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
PYTHON_SAFE_WORDS_CACHE: cache words in this file, default is a tempfile
PYTHON_SAFE_WORDS_FILE: words vocabulary file, default is the 10k top passwords
Other Implementations
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
File details
Details for the file Safe-0.2.tar.gz
.
File metadata
- Download URL: Safe-0.2.tar.gz
- Upload date:
- Size: 56.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 91e952351b61fbb9de875376b3f687021683083c2dde424080b760f92de97c23 |
|
MD5 | 11015ee41d63d6e61f90d523990a2503 |
|
BLAKE2b-256 | 35616d7bc685e662f3f2694a21d061bfd0912962fbb95411c229a7b8f614e240 |