在Linux自动生成一个保险密码的方法
Linux下面提供mkpasswd这个小工具,可以简单的生成比较安全的密码。 比如: mkpasswd -l 15 这样的命令就可以输出oUm9Eskhen2xxn~这样的密码。 同时可以通过参数指定密码中最少含有的数字,大小写字母等。 说明书上给出的例子如下: The following example creates a 15-character password that contains at least 3 digits and 5 uppercase characters. mkpasswd -l 15 -d 3 -C 5 |
评论