最新下载
热门教程
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
linux随机生成随机密码的脚本
时间:2014-02-28 编辑:简简单单 来源:一聚教程网
代码如下 | 复制代码 |
cat /dev/urandom | LC_ALL=C tr -dc "[:alnum:]" | fold -w 10 |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
如果需要特别复杂的密码可以试一下:
代码如下 | 复制代码 |
cat /dev/urandom | LC_ALL=C tr -dc "[:graph:]" | fold -w 10 |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
另一种方法可以利用uuid 来产生一个密码,一次只能产生一个:
代码如下 | 复制代码 |
cat /proc/sys/kernel/random/uuid|tr -d "-" |
d9d01c59d22f4ebbac16b759103f4fc6
相关文章
- Linux下用makepasswd和passwordmaker生成密码 12-21
- Linux下生成链条式密码钥匙shell脚本 08-08
- linux中shell生成随机密码示例 08-25
- win11内核隔离和内存完整性介绍 10-31
- win10全屏缩放设置教程 10-31
- win10系统备份出错解决教程 10-31