A collection of tools to make diceware passphrase conform with "password policy"
Project description
Diceware Utilities
A collection of tools to make diceware passphrase conform with "password policy"
For a selection of words, please see other packages inside PyPI.
Installation
pip install diceware_utils
or
pipenv install -e git+https://github.com/patarapolw/diceware_utils.git#egg=diceware_utils
Usage
>>> from diceware_utils.policy import Conformize
>>> conformize = Conformize()
>>> conformize.conformize(['unlikely', 'piezo', 'electric', 'grounds'])
';U$Piezo33lGrounds'
>>> conformize.update_policy(new_policy)
>>> from diceware_utils.wordlist import Wordlist
>>> Wordlist().get_random_word()
'ladybug'
Adapting to the policy of your choice
- Policy is now updateable. It is of format:
both_upper_and_lower: true
digit_count: 2
punctuation_count: 2
length:
min: 10
max: 20
Found in
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
diceware_utils-0.4.1.tar.gz
(1.2 MB
view hashes)
Built Distribution
Close
Hashes for diceware_utils-0.4.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b3b41f4dd750f021709fef90b6d26d8fddd1ffb51e49ff6f7f75e4f8c907f573 |
|
MD5 | 26cdd10d25e6b9a83b6a4be8d6f499fc |
|
BLAKE2b-256 | 4562d4197701637bd287175d176677ac767d87c26cf582e0d70c3d9722b1c1a3 |