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.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
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
Built Distribution
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
Algorithm | Hash digest | |
---|---|---|
SHA256 | a2fdac9fe8a9dcf02b438201d6ce0b7be78f85dc6492d03edfb89be2adf489de |
|
MD5 | 670ef3588b98f878dd1b38b13d8f677d |
|
BLAKE2b-256 | d23dea0fa7a262431f4b94845df59637bbb4ccac9d03a696ca1d894631da8614 |
File details
Details for the file Safe-0.4-py2-none-any.whl
.
File metadata
- Download URL: Safe-0.4-py2-none-any.whl
- Upload date:
- Size: 56.0 kB
- Tags: Python 2
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4e7315087d80fdbbc781362a656376cfa273c5c68a8abc0412e159bf541fcbda |
|
MD5 | 66ec4c9459859f2af767d821cd6a7cf6 |
|
BLAKE2b-256 | 6e1928e04729954cd3c401ad09aabf14bf896a9e5b112f7d56bc7ea2617a7b36 |