分析密码的记忆能力并生成可发音的单词。
pronounceable的Python项目详细描述
可发音
- 使用python 3和secrets模块生成一个随机可发音单词(如果python<;3.6返回到random模块)。
- 根据发音能力计算密码复杂度。>;10.0可能太复杂了,人类无法记住。
用法
>>> frompronounceableimportPronounceableWord,generate_word,Pronounceablity,Complexity>>> PronounceableWord().length(8,15)'terhtsadathe'>>> generate_word()'gloust'>>> pr=Pronounceablity()>>> pr.syllable('terhtsadathe')6>>> pr.syllable('hello')2>>> pr.syllable('gloust')4>>> complexity=Complexity()>>> complexity.complexity('D7!rcc&umnsd')5.401603904395188>>> complexity.complexity('a4ILot#h')4.71785657472491>>> complexity.complexity('password')1.0>>> complexity.complexity('thisisabadpassword')2.2220669581020354>>> complexity.complexity('anejpwnrqpqzonijre')4.71785657472491
基于
- https://github.com/greghaskins/gibberish
- https://github.com/ricardofalasca/passpro-generator
- nltk-cmudict
有关密码的详细信息
- 可读密码助记符--https://github.com/patarapolw/memorable-password
- 密码的安全端--https://github.com/patarapolw/passwordstrength
- 使人性化密码适应计算机化密码策略-https://github.com/patarapolw/leetpass