Chinaunix首页 | 论坛 | 博客
  • 博客访问: 713701
  • 博文数量: 140
  • 博客积分: 5097
  • 博客等级: 大校
  • 技术积分: 991
  • 用 户 组: 普通用户
  • 注册时间: 2006-01-05 19:13
文章分类

全部博文(140)

文章存档

2018年(1)

2015年(5)

2014年(5)

2013年(2)

2011年(16)

2010年(6)

2009年(9)

2008年(45)

2007年(26)

2006年(25)

分类: 网络与安全

2008-05-10 21:47:56

openssl简介-指令passwd

    SYNOPSIS
   
    openssl passwd [-crypt] [-1] [-apr1] [-salt string] [-in file] [-stdin]
   
    [-quiet] [-table] {password}
说明:
    本指令计算用来哈希某个密码,也可以用来哈希文件内容。

    本指令支持三种哈希算法:
    UNIX系统的标准哈希算法(crypt)
    MD5-based BSD(1)
   
    OPTIONS
   -crypt -1 -apr1
    这三个option中任意选择一个作为哈希算法,缺省的是-crypt
    -salt string
    输入作为salt的字符串。
    -in file
    要哈希的文件名称
    -stdin
    从标准输入读入密码
    -quiet
    当从标准输入读密码,输入的密码太长的时候,程序将自动解短它。这个option的
    set将不在情况下发出警告。
    -table
    在输出列的时候,先输出明文的密码,然后输出一个TAB,再输出哈希值.
    举例时间:
    openssl passwd -crypt -salt xx password xxj31ZMTZzkVA.
    openssl passwd -1 -salt xxxxxxxx password $1$xxxxxxxx$8XJIcl6ZXqBMCK0qFevqT1.
    openssl passwd -apr1 -salt xxxxxxxx password $apr1$xxxxxxxx$dxHfLAsjHkDRmG83UXe8K0
阅读(1231) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~