小工具大用途–APG密码生成器
前言:
管理的服务器多了,管理的服务多了,用户密码就显得很麻烦了,密码太简单安全性差,设置得复杂又总要费脑。所以就想要要一个密码自动生成器,复杂密码也就根本不用去背下来,只要有记录就行。
注意:
所以在网上搜索,发现相关的不是很多,看到APG这个小工具还不错,介绍说大部Linux软件自带,openSUSE就不自带,而且不能搜索APG APG是显卡插槽的一种,APG的缩写是Automated Password Generator(简称“APG”)
下载:
还是直接下载源代码安装来得快
官网:http://www.adel.nursat.kz/apg/
# wget http://www.adel.nursat.kz/apg/download/apg-2.2.3.tar.gz
安装:
好习惯还是先看下安装文件 解压进入目录 #more INSTALL
可以看到原来不用configure 的 ,直接make 就行
#make all
#make install
使用:
1、不加任何参数执行,将默认生成 6 个随机密码:
UcGilbOb$
VacHidvis
sleennoy
afWibush2
Dudlevpeg-
grucyigvep
2、常用参数
m 指生成密码的位数,默认是8位
M mode 使用模式生成密码
-M mode
Use symbolsets specified with mode for password generation. mode is a text string
consisting of characters S, s, N, n, C, c, L, l. Where:
S generator must use special symbol set for every generated password.每个密码必须都有特殊字符
s generator should use special symbol set for password generation.包含特殊字条但不一定每个都有
N generator must use numeral symbol set for every generated password.每个密码必需含有数字
n generator should use numeral symbol set for password generation.包含数字
C generator must use capital symbol set for every generated password.每个密码必需有大写字母
c generator should use capital symbol set for password generation.包含大写字母
L generator must use small letters symbol set for every generated password每个密码必需有小写字母
(always present if pronounceable password generation algorithm is used).
l generator should use small letters symbol set for password generation.包含有小写
R,r not supported any more. Use -E char_string option instead.
mode can not be more than 4 characters in length.
Note:
Usage of L, M, N, C will slow down password generation process.
Examples:
-M sncl or -M SNCL or -M Cn
例如#apg -M SNCL -m 16
Hir4kecivedyueg&
Uryevdivut7opAt`
bird2OlkovTaHyp\
Up;kocCarvyomOj5
Ums9quifdyinBib+
oaHutyars5Shnar\

