使Diceware密码短语符合“密码策略”的工具集合
diceware_utils的Python项目详细描述
Diceware实用程序
使Diceware密码短语符合"password policy"
更新
- (2017.05.22)允许生成“弱”密码。
>>> fromdiceware_utils.generateimportGeneratePassword>>> GeneratePassword().generate(weak=True)'+"75ImposeRompSudoku'
安装
pip install diceware_utils
或
pipenv install -e git+https://github.com/patarapolw/diceware_utils.git#egg=diceware_utils
用法
>>> fromdiceware_utils.policyimportConformize>>> conformize=Conformize()>>> conformize.conformize(['unlikely','piezo','electric','grounds'])';U$Piezo33lGrounds'>>> conformize.update_policy(new_policy)>>> fromdiceware_utils.wordlistimportWordlist>>> Wordlist().get_random_word()'ladybug'>>> fromdiceware_utils.generateimportGeneratePassword>>> GeneratePassword().generate()',Ab17HaRLanky-RoyalS'
适应您选择的政策
- 策略现在可更新。格式:
both_upper_and_lower:truedigit_count:2punctuation_count:2length:min:10max:20
数据库源
leetspeak.yaml
、policy.yaml
和整合算法都是原创的单词表取自pwgen-passphrase,它属于各自的作者
生成密码的主要单词列表是来自电子前沿基金会的eff-long.txt
。
这个系列中另一个有趣的单词表是由kevin atkinson维护的aspell-en.txt
。我将这两个文件导出到下面的android应用程序。
diceware密码的概念来自https://xkcd.com/936/
网络演示
http://diceware-utils.herokuapp.com
移动应用程序
请参阅Keepass DX - memorable password——一个带有此生成器的android密码管理器。
我可能计划为这个密码生成器创建一个专用的应用程序(可能没有manager),因为sentencemaker的启动时间相对较慢。
相关项目
- randomsentence-基于关键字列表的随机句子生成器