在Linux自動(dòng)生成一個(gè)保險(xiǎn)密碼的方法
Linux下面提供mkpasswd這個(gè)小工具,可以簡單的生成比較安全的密碼。 比如: mkpasswd -l 15 這樣的命令就可以輸出oUm9Eskhen2xxn~這樣的密碼。 同時(shí)可以通過參數(shù)指定密碼中最少含有的數(shù)字,大小寫字母等。 說明書上給出的例子如下: 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 |
評(píng)論