zenpass
v1.0.5
生成随机和强密码。
pip install -U zenpass
usage: zenpass [options]
optional arguments:
-h, --help show this help message and exit
-v, --version show version number and exit.
to customize Password:
-l , --length to set length to the password
-n , --ignore to ignore unwanted characters to the password
-i , --include to include characters to the password
-o , --only to create password only using wanted characters
-s , --separator the separator character
-c , --seplen the length of characters between separator
--repeat to repeat the characters in the password (default : False)
--separation to separate password characters using separator (default : False)
--show to show password (default : False)
keywords: [alphabets, uppercase, lowercase, numbers, symbols]
can be given as input for following params: ignore, include, only
生成随机密码。
from zenpass import PasswordGenerator
pg = PasswordGenerator ()
pg . generate ()生成随机密码。
$ zenpass
Password copied to clipboard.
要设置密码长度,默认密码长度为8-16 。
$ zenpass -l 10 --show
Password: Q3m/vro|uR
Password copied to clipboard.
无论密码中的字符是否重复, repeat的默认值都是False 。
$ zenpass -r --show
Password: 96Ndl;1D$jQu4Z2
Password copied to clipboard.
在生成密码中包括,忽略或仅使用'alphabets' , 'numbers' , 'uppercase' , 'lowercase' , 'symbols'和random characters 。
忽略密码中的numbers 。
$ zenpass -n numbers --show
Password: uyMXP‘$!ZSCYqzj
Password copied to clipboard.
忽略字符a,b,c,d,e
$ zenpass -n abcde --show
Password: ~}t"R‘jF'ksG8~E
Password copied to clipboard.
仅使用special characters创建密码。
$ zenpass -o symbols -l 15 --show
Password: ?)".=-_^[_‘~{.)
Password copied to clipboard.
在密码中包括a,b,c,d,e字符。
$ zenpass -o numbers -i abcde -l 15 --show
Password: 78713d1e3d926a3
Password copied to clipboard.
使用分隔符中的密码中的字符。
$ zenpass -o uppercase --separation -l 16 --show
Password: YNQC-RKBF-DMAT-UVIP
Password copied to clipboard.
使用分隔符_在每个分隔符之间使用5字符的字符中分离密码。
$ zenpass -o uppercase --separation -l 15 -s _ -c 5 --show
Password: YNQCR_KBFDM_ATUVI
Password copied to clipboard.
如果遇到任何问题,请提交问题以及详细说明。