Linux randomly generated scripts for random passwords

Source: Internet
Author: User
Tags control characters numeric printable characters uuid

The code is as follows Copy Code
Cat/dev/urandom | Lc_all=c TR-DC "[: Alnum:]" | Fold-w |head-10

Si1n9kuyuz
Ddzsrxfgxa
Cadrbrt4px
Bugk6lkx4d
N5xod1toyr
1645cBxAjl
Krjwjr2txu
NhQedXagL9
Rradezgfhy
Qxcurm5ezf

Expression semantics
Alnum matches alpha-numeric characters
Alpha matches alphabetic characters
Blank matches spaces or tabs
Cntrl matches control characters
Digit matches numeric digits
Graph matches Non-space printing characters
Lower matches lower case letters
Print matches printable characters
Punct matches punctuation Symbols
Space matches spaces, tabs, returns, and newlines
Upper matches upper case letters
Xdigit matches hexadecimal digits

If you need a particularly complex password, try this:

The code is as follows Copy Code

Cat/dev/urandom | Lc_all=c TR-DC "[: Graph:]" | Fold-w |head-10


y# @uDo. g-w
Rpoq.8?) E
2r~ccislpr
*/v4″%h9we
!ip2jj:vql
Zb!w}dz|ln
2*%|/; X$?>
R7;-bam|~l
Ps83,_ ' 8Xz
C?mnpuzn*i

Alternatively, you can use a UUID to produce a password that can only produce one at a time:

The code is as follows Copy Code
Cat/proc/sys/kernel/random/uuid|tr-d "-"

D9d01c59d22f4ebbac16b759103f4fc6

Related Article

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.