Chinaunix首页 | 论坛 | 博客
  • 博客访问: 86414
  • 博文数量: 52
  • 博客积分: 0
  • 博客等级: 民兵
  • 技术积分: -20
  • 用 户 组: 普通用户
  • 注册时间: 2018-06-04 17:51
文章分类

全部博文(52)

文章存档

2013年(6)

2012年(3)

2011年(4)

2010年(18)

2009年(21)

我的朋友

分类: LINUX

2010-09-28 09:14:42

1) 工具说明


Linux下的密码生成工具.


2) 下载安装


下载:

安装:

# mkdir -p /orahome/wangnc/pwgen

# cd /orahome/wangnc/pwgen

# rz (上传安装包pwgen-2.06.tar.gz)

# tar zxvf pwgen-2.06.tar.gz && cd pwgen-2.06

# ./configure && make && make install

...

mkdir -p /usr/local/bin /usr/local/man/man1

/usr/bin/install -c pwgen /usr/local/bin/pwgen

/usr/bin/install -c -m 644 ./pwgen.1 /usr/local/man/man1/pwgen.1


3) 使用示例


# which pwgen

/usr/local/bin/pwgen

# pwgen (默认生成一堆8位的密码)

eiju6Ahk EiGh8jee EethaN0e Wah9the0 uNova8Ai WaaRooX0 ooc3DeiC pah0Quai
v

# pwgen -h (查看帮助)

Usage: pwgen [ OPTIONS ] [ pw_length ] [ num_pw ]

Options supported by pwgen:
-c or --capitalize
        Include at least one capital letter in the password
-A or --no-capitalize
        Don't include capital letters in the password
-n or --numerals
        Include at least one number in the password
-0 or --no-numerals
        Don't include numbers in the password
-y or --symbols
        Include at least one special symbol in the password
-s or --secure
        Generate completely random passwords
-B or --ambiguous
        Don't include ambiguous characters in the password
-h or --help
        Print a help message
-H or --sha1=path/to/file[#seed]
        Use sha1 hash of given file as a (not so) random generator
-C
        Print the generated passwords in columns
-1
        Don't print the generated passwords in columns
-v or --no-vowels
        Do not use any vowels so as to avoid accidental nasty words


# pwgen -y 20 (生成多个包含至少一个特殊字符且长度为20的密码)

ooch~ae4eiQuo7maquo3 wo#Xohca+f4ohzo9fu1A beit"e2goa7Oog3aeMae


阅读(875) | 评论(1) | 转发(0) |
给主人留下些什么吧!~~

chinaunix网友2010-09-28 15:38:11

很好的, 收藏了 推荐一个博客,提供很多免费软件编程电子书下载: http://free-ebooks.appspot.com