[root@localhost ~]# yum -y install pwgen [root@localhost ~]# pwgen -ncCyB1 8 1 kei%b3Xa [root@localhost ~]# pwgen -ncCyB1 8 2 Ahs3eib' Yo>u7eun [root@localhost ~]#
[root@localhost ~]# echo $RANDOM|md5sum |cut -c 1-8 d31a2fcf # 生成数字 [root@localhost ~]# echo $RANDOM |cksum |cut -c 1-8 32022099
[root@localhost ~]# openssl rand -base64 4 nMjQSQ== # 生成数字 [root@localhost ~]# openssl rand -base64 4 |cksum |cut -c 1-8 25050760
[root@localhost ~]# cat /proc/sys/kernel/random/uuid |cut -c 1-8 0ca50358
[root@localhost ~]# date +%N |cut -c 1-8 88573308
本文介绍了在Linux环境下使用多种方法生成随机密码的技巧,包括使用pwgen工具、md5sum、cksum、openssl以及系统内核随机数生成器等,为系统管理员提供增强安全性所需的复杂密码生成方案。
1911

被折叠的 条评论
为什么被折叠?



