generates passwords for CMS
Project description
EUA
EUA rules implemented in this script are:
Must start with a letter
At least one number (0-9)
At least one Lowercase alphabetic character (a-z)
At least one Upper Case alphabetic character (A-Z)
MUST BE EXACTLY 8 characters long
May not include “punctuation characters” (undocumented)
Rules NOT implemented:
Cannot include your EUA UserID and any part of your name
Cannot include any word/word portion prohibited by the defined CMS dictionary
Password can’t contain 50% characters from previous password
Be different from the previous 24 passwords
CloudVPN
CloudVPN rules implemented in this script are:
Cannot contain keyboard walks of 3 or more consecutive keyboard keys in a row (e.g. asd, zaq, 123, was, pol, ser, gyu, bhj, 9o0, p;[, etc.)
Password length greater than 15 characters.
Contain 3 out of 4 the following:
1 digits (0-9).
1 symbols (!, @, #, $, %, *, etc.).
1 uppercase English letters (A-Z).
1 lowercase English letters (a-z).
Rules NOT implemented:
Password must differ from previous password by 24 password(s).
Password must be at least 1day(s) since last password change.
Installation
You need python3:
brew install python3
python3 -m pip install cmspw
Usage
Cryptographically random alphanumeric strings are generated, printing the first that complies with the EUA/CloudVPN ruleset to the standard output.
$ python3 -m cmspw --help
usage: cmspw [-h] --ruleset RULESET [--length NUM]
generates passwords for CMS
optional arguments:
-h, --help show this help message and exit
--ruleset RULESET, -r RULESET
rule set to validate against. can be one of ['eua', 'vpn'].
--length NUM, -l NUM password length. if ruleset is 'eua', this is ignored.
$ python3 -m cmspw --ruleset eua
qJbcNJ2Y
$ python3 -m cmspw --ruleset vpn --length 24
4H+-X^#XV(8'&wB5ZNn'H%>q
Development
You need poetry:
brew install poetry
Inside the project directory you can enter a virtual environment like so:
poetry install && poetry shell
Project details
Release history Release notifications | RSS feed
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 cmspw-1.1.2.tar.gz
.
File metadata
- Download URL: cmspw-1.1.2.tar.gz
- Upload date:
- Size: 9.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.1.4 CPython/3.8.6 Darwin/19.6.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6761135ccce06c5711b3bfbecdd41f66d4a44b1b4ff47c69475926a9143fbfe0 |
|
MD5 | 648420a8a159f45a7533340b37b00482 |
|
BLAKE2b-256 | 35406562ff739debacd6be08cd02e1573352a53540e27ab78cd781e18ed5072a |
File details
Details for the file cmspw-1.1.2-py3-none-any.whl
.
File metadata
- Download URL: cmspw-1.1.2-py3-none-any.whl
- Upload date:
- Size: 9.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.1.4 CPython/3.8.6 Darwin/19.6.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 72265c5f784b4c303847ff48adada1e6c3e7c4f4f6b27fcd0a41f15e81d56836 |
|
MD5 | 08ccdb005e50654e690319f6b75addb1 |
|
BLAKE2b-256 | 7f5c552b322d1766ff0ef7fdb4beffaaf6372240c9e007b492bcaafc80c6daaa |