Fun password generatior
fpw的Python项目详细描述
有趣的密码生成器(fpw
)
一种便携式的单文件python2/3密码生成器,试图以加密安全的方式生成随机密码。
默认情况下,fpw
使用在英语键盘上轻松键入的所有字母、数字和符号生成完全随机的密码。要支持不安全的系统,可以指定所需的字符组。为了支持不安全的人,可以生成可发音的密码。要破解密码,可以从一个大的unicode字符集生成密码。
用法
usage: fpw [-h] [--number NUMBER] [--pronounceable] [--lower] [--require-lower] [--upper]
[--require-upper] [--digits] [--require-digits] [--special]
[--require-special] [--characters CHARACTERS] [--unicode] [--active-directory]
[--build-markov FILE]
[length]
Generate random passwords in a hopefully secure manner.
positional arguments:
length Length of password
optional arguments:
-h, --help show this help message and exit
--number NUMBER, -n NUMBER
Number of passwords to generate
--pronounceable, -p Create human pronounceable passwords
--lower, -l Use lower case letters
--require-lower, -L Require at least one lowercase character
--upper, -u Use upper case letters
--require-upper, -U Require at least one upper character
--digits, -d Use digits
--require-digits, -D Require at least one digit character
--special, -s Use special characters (punctuation)
--require-special, -S
Require at least one special character
--characters CHARACTERS, -c CHARACTERS
Specify individual characters
--unicode, -z Use a large unicode character set
--active-directory, -a
Output passwords that exceed the default requirements in
Microsoft Active Directory environments (`-LUDS`)
--build-markov FILE, -b FILE
Build a markov chain using the words in FILE.
功能
字符组
您可以指定最小的小写、大写、数字或特殊字符数。您还可以只包含某些组,甚至指定已批准字符的列表。如果指定--lower
、--upper
、--digits
、--special
或--characters
,则密码将只包含这些字符。
可发音的密码
使用马尔可夫链生成可发音的密码。
markov引擎被训练成使用存储库中的words.txt
文件生成类似英语的乱语。但是,操作fpw
不需要该文件,因为fpw
是一个自更新程序,使其比普通密码生成器更接近感知。我要在这里发表声明说,fpw
使用人工智能。
要使fpw
更智能,请获取文件中的单词列表。这些词应该用新行隔开。然后运行:
fpw -b words.txt
它将解析它们并将生成的markov数据存储在fpw
脚本文件本身中,这样您就不必在多个文件之间进行复制。你读对了。它将数据存储在保存可执行代码的同一个文件中。
示例
从小写、大写、数字和特殊字符生成密码:
> fpw -luds
至少需要一个小写、大写、数字和特殊字符:
> fpw -LUDS
NLHh'nfSgV1@U;{q
只有数字:
> fpw -d
4261729641542628
只有某些字符:
> fpw -c u
uuuuuuuuuuuuuuuu
短密码:
> fpw 1
r
设置长密码:
> fpw 300
rM_DK'^kf3@^pg]ja!\p3nrV$TUhq*.x(GCZr)Qz%>hup-T!y@@6KW#]f](]b!R6w'C{!x>sEeYtQ*yY~).xI7-|-Y(\Lk;c4COr-jdyM=/D@w{|jmmHeFNL:JqXWgQ$J&N@sb0.$w9e('j^R:x"qcv7Y{-DQ!pmwi%UoT,F)WTL-Q._L-1U&".jr)J[g/n"8|-Vv3/S1Yr&zG}S"xv1?!iC_(?T.$tjX!d:<B|elY^UIe,xfnR+fldNiE}V33uYT3}>yAE3kR,){x+vJsP|vHnDZKH6'N\hV@}Boh.4)O!?
需要6位数字和3个特殊字符:
> fpw -D 6 -S 3
SK374-{Y5y2Wty3-
6个高Unicode范围密码:
> fpw -zn 6
୳↥ѐḒृ₮⇉O2ޝ☀แݾ࢙ቦ
♝⇧ᑙᘒଥȨണቁᢔዅ✀ᳫܡᇤ
ຟക᭫ᢱᾞẠᬩ❷∴ᾘ✋Ṋឧ৹ཡ
ᮀᓴಙᳫaᯍ┐╝ᒨ℁ڛ܂ฃఎ֞
ࡰ⎪⍜✐͊ಪDZ⊯ᯒ◬ყӽѦଁ
○ܠᕲ༖ᨱʤᧁΩ፭နཟϳ⎬
5个模糊的人类可发音密码:
> fpw -pn 5
eidbloneseandune
rintrsscaphatind
onionsalatrytoki
pharocagnossshyd
dititesindeseses