Linux Bulk Generate passwords

Source: Internet
Author: User

I found some information on the Internet, there are many tools to generate the password, I used one of them.

I use the city CentOS system, with the source of Epel, direct yum install Pwgen installation of this tool

Then use:

[[Email protected] ~]# pwgen -c -n -y -hpwgen: option requires  an argument --  ' H ' usage: pwgen [ options ] [ pw_length  ] [ num_pw ]options supported by pwgen:  -c or -- capitalize    include at least one capital letter in  The password  -a or --no-capitalize    don ' t include  capital letters in the password  -n or --numerals     include at least one number in the password  -0 or  --no-numerals    don ' T include numbers in the password   -y or --symbols    include at least one special  symbol in the password  -s or --secure    generate completely random  Passwords  -b or --ambiguous    don ' t include ambiguous  characters in the password  -h or --help    print  a help message  -h or --sha1=path/to/file[#seed]     use sha1 hash of given file as a  (NOT SO)  random  generator  -c    print the generated passwords in  Columns  -1    don ' T print the generated passwords in  columns  -v or --no-vowels    do not use any  vowels so as to avoid accidental nasty words


The individual summarizes the parameters used under the

Pwgen-c-n-y 8

C

Includes 1 uppercase letters

N

Include a number

Y

Include a special character

8

8-bit password

And then you'll

[Email protected] ~]# pwgen-c-y-n 8
Op[up8ho sil|ie3o eis6pie{eix]ee4m ujei_to1 ma<f0oi_ hai5yuy_ ne6dai ' T
Oo-y1dei ahjae%b7 xa9igi\g sah#qu7m pi+ich2h cha^gae6 voo<dai2 UD "Oc4nu
Eo4chu,o Fee!g4oh Ax;i3chu ahn4on]u ej7een\a hie#tee0 He. JAAR2 Ku5phie]
pa%lai1r ki<uf4ie Ang ' oog0 Vo ' h6phe zoh+sh7p io:ng4mo piqu*i9i Eid ' ie3u
Aa\z9zei ag{ah9mi Ao "hoo0o aeyi~mo7 eef6ugh| gie5aa>n oh\u9phu BEM&AMP;UT2A
paey!o6h cae]g0ac No (voo6x orep/eh7 rah=sh9e io}quei4 ahw/eef4 ohvoo[h3
Aeg$e0oh veo#gh6u ahr\ahv6 Piet ' u5w koz6ia|l pai5ie ' g mie6on*e zoo5aeg{
Oom1it&u ol1nee~g faib7ax+ iek$een3 ouqu ' ei3 bae{f1ey [email protected] dogh4ek-
Beu^b9uu oj8eer>i xae/c2ut ga\u1eir oow1zai> uish!ie2 wait$e9e aegh?ie5
Ii$qu5du uugh=ai4 ahha]a5o Aiqu2eo) cho0eis_ feep3ed) moo;qu2a bie[th8t
ahgh=o9d Ees^ohh4 Ez|a9dae Pha. M5ao eep2oh[u Al8enoh:lae]k4eu Pi3ohz>e
Ni*em6we Woh%boo7 ge\neo7e thai| M2E Uwai (k5u [email protected] ue5obua< eem{od2g
hee[ze8w kui2ce_r om~iy0uo bieb<o6e oon[oo7g Fee6ahd] joo:gi3x Xoh0aim]
Uu#b5ein ac<as0sh eb7ef=oo nei+g7ei aen/eiw4 Qua5eej; bae\ng8d Ay~oh7ma
Aj2zeex ' Ux_u6vax au,n9wae sei8veo_ gae%z5ch na{a2oa3 ca5icha& aboi0oo\
Lae4tab_ Io ' Ngee3 do ' W4air aeku.g7a ook}ing6 ju4re|ix ia^m0ohy aing?ei3
Xei=l4ee Oo9em#o7 eed$aih0 ait&eex6 ieN "Iah5 om0boh/w bi,i4thi aes]ae3g
tu|gof5j joo2ve{b Aec) ael9 tee{sh6i ieG ' ai0u yi1oa|ci [email protected] Re^x1ees
Zu-e3esh ohv}ah7u go9ahph; NEI) qu9a goo+y3pe pu{shec5 Ahr ' eeD2 coo7ais-
ath.oo6b aimee<c0 chi_oc8o fa%m*ah4 oe (gh8uh ohrie*r6 bie8aiz/ohsh[ai7

If only one plus-1 parameter

=========================================================================

MAKEPASSWD is the same.

[Email protected] ~]# makepasswd +xg=0&
[[email protected] ~]# makepasswd --helpmakepasswd: invalid option --  '-' usage: makepasswd [-ceilmmnpss]       makepasswd -e  [-ceilmmnss]  -c    string of allowed characters  (A-Za-z0-9 ' [email protected]#$%^&* ()-_=+)   -e    enumerate all possible  values  -e    Encryption algorithm  (NONE,BASE64,BLOWFISH,DES,MD5 , SHA1,SHA256,SHMD5)   -i    Number of iterations in  encryption algorithm  -l    password length  -m     Maximum password length  -m    Minimum password  Length  -n    number of passwords to generate  -p    &nbsP password to use  -s    do not seed ourselves   -s    salt to use

Personal summary of the following use parameters are:

[[email protected] ~]# makepasswd-l 8-n 5a) *@ NPPK (6+LTS=RW3FH=FC ' q$8^mdgrvz$i) VH

-L

Password length

-N

Total number of passwords generated

You can also add the-e parameter to generate an encrypted password.

[Email protected] ~]# makepasswd-e MD5 (TQZRZPQ 5314e68d6a5c8abddc09551a7f1b3f8d

Encryption type help on there, I'm not going to put one on the one.

This article is from the "Kid Not Stupid" blog, please be sure to keep this source http://eric02.blog.51cto.com/9645751/1684618

Linux Bulk Generate passwords

Contact Us

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.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.