Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Third Party Openssl
提交
cc244b37
T
Third Party Openssl
项目概览
OpenHarmony
/
Third Party Openssl
大约 1 年 前同步成功
通知
9
Star
18
Fork
1
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
T
Third Party Openssl
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
cc244b37
编写于
7月 31, 2000
作者:
B
Bodo Möller
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Update 'openssl passwd' documentation on selection of algorithms.
上级
bd4e1527
变更
2
隐藏空白更改
内联
并排
Showing
2 changed file
with
11 addition
and
4 deletion
+11
-4
apps/passwd.c
apps/passwd.c
+1
-1
doc/apps/passwd.pod
doc/apps/passwd.pod
+10
-3
未找到文件。
apps/passwd.c
浏览文件 @
cc244b37
...
@@ -44,7 +44,7 @@ static int do_passwd(int passed_salt, char **salt_p, char **salt_malloc_p,
...
@@ -44,7 +44,7 @@ static int do_passwd(int passed_salt, char **salt_p, char **salt_malloc_p,
char
*
passwd
,
BIO
*
out
,
int
quiet
,
int
table
,
int
reverse
,
char
*
passwd
,
BIO
*
out
,
int
quiet
,
int
table
,
int
reverse
,
size_t
pw_maxlen
,
int
usecrypt
,
int
use1
,
int
useapr1
);
size_t
pw_maxlen
,
int
usecrypt
,
int
use1
,
int
useapr1
);
/* -crypt - standard Unix password algorithm (default
, only choice
)
/* -crypt - standard Unix password algorithm (default)
* -1 - MD5-based password algorithm
* -1 - MD5-based password algorithm
* -apr1 - MD5-based password algorithm, Apache variant
* -apr1 - MD5-based password algorithm, Apache variant
* -salt string - salt
* -salt string - salt
...
...
doc/apps/passwd.pod
浏览文件 @
cc244b37
...
@@ -8,6 +8,7 @@ passwd - compute password hashes
...
@@ -8,6 +8,7 @@ passwd - compute password hashes
B<openssl passwd>
B<openssl passwd>
[B<-crypt>]
[B<-crypt>]
[B<-1>]
[B<-apr1>]
[B<-apr1>]
[B<-salt> I<string>]
[B<-salt> I<string>]
[B<-in> I<file>]
[B<-in> I<file>]
...
@@ -22,8 +23,8 @@ The B<passwd> command computes the hash of a password typed at
...
@@ -22,8 +23,8 @@ The B<passwd> command computes the hash of a password typed at
run-time or the hash of each password in a list. The password list is
run-time or the hash of each password in a list. The password list is
taken from the named file for option B<-in file>, from stdin for
taken from the named file for option B<-in file>, from stdin for
option B<-stdin>, and from the command line otherwise.
option B<-stdin>, and from the command line otherwise.
The Unix standard algorithm B<crypt> and the MD5-based B
<apr1> algorithm
The Unix standard algorithm B<crypt> and the MD5-based B
SD password
are available.
a
lgorithm B<1> and its Apache variant B<apr1> a
re available.
=head1 OPTIONS
=head1 OPTIONS
...
@@ -33,9 +34,13 @@ are available.
...
@@ -33,9 +34,13 @@ are available.
Use the B<crypt> algorithm (default).
Use the B<crypt> algorithm (default).
=item B<-1>
Use the MD5 based BSD password algorithm B<1>.
=item B<-apr1>
=item B<-apr1>
Use the B<apr1> algorithm.
Use the B<apr1> algorithm
(Apache variant of the BSD algorithm)
.
=item B<-salt> I<string>
=item B<-salt> I<string>
...
@@ -64,6 +69,8 @@ to each password hash.
...
@@ -64,6 +69,8 @@ to each password hash.
B<openssl passwd -crypt -salt xx password> prints B<xxj31ZMTZzkVA>.
B<openssl passwd -crypt -salt xx password> prints B<xxj31ZMTZzkVA>.
B<openssl passwd -1 -salt xxxxxxxx password> prints B<$1$xxxxxxxx$8XJIcl6ZXqBMCK0qFevqT1>.
B<openssl passwd -apr1 -salt xxxxxxxx password> prints B<$apr1$xxxxxxxx$dxHfLAsjHkDRmG83UXe8K0>.
B<openssl passwd -apr1 -salt xxxxxxxx password> prints B<$apr1$xxxxxxxx$dxHfLAsjHkDRmG83UXe8K0>.
=cut
=cut
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录