Installation:# yum-y Install expectParameters:-L: Password length, default is 9;-D: The minimum number of digits in the password, the default is 2;-C: The minimum number of lowercase letters in the password, the default is 2;-C: The minimum number of uppercase letters in the password, the default is 2;-S: The minimum n
This article describes how to implement a random password dictionary generator in python. if you need a dictionary generator, you can refer to all the passwords you want to use. the algorithm is either nested too deep, or memory consumption (will overflow ). later, I selected an algorithm with a low probability of simple repetition. the code is as follows:
;=============================================================Import String,randomlength=8seedlower=string.lowercaseseeddigit=string.digitsseedupper=string.uppercasepwd=pwdd =pwdl=pwdu= ' Countl=random.randrange (1,length-1) countu=random.randrange (1,length-countl) countd= ( Length-countl-countu) #生成随机的字符for L in Random.sample (seedlower,countl):p wdl+=lfor u in Random.sample (Seedupper,countu ):p wdu+=ufor D in Random.sample (SEEDDIGIT,COUNTD):p wdd+=d# random character seed=pwdl+pwdu+pwddshuf
During work, you often need to generate a 16-bit strong password for application authorization. Previously, keypass was used in a windows environment. Currently, the company does not allow the use of the windows operating system. A generator is specially written. [Html]
Php random password generator
Function auth_pwgen (){
$ Pw = '';
$ C = 'bcdfghjklmnprstvwz'; // consonants cannot hard to speak ones
$ V = 'aeiou'; // vowels
$ A = $ c. $ v; // both
// Use two syllables...
For ($ I = 0; $ I
$ Pw. = $ c [rand (0, strlen ($ c)-1)];
$ Pw. = $ v [rand (0, strlen ($ v)-1)];
$ Pw. = $ a [rand
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.