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.
如果遇到任何問題,請提交問題以及詳細說明。