[ubuntu-cn] dovecot使用passdb password file时,如何对明文密码进行加密?

18 views
Skip to first unread message

Dennis

unread,
Apr 15, 2010, 11:55:10 AM4/15/10
to ubun...@googlegroups.com
dovecot使用passdb password file时,如何对明文密码进行加密?

在密码文件里,默认情况下,是PLAIN类型的,也就是明文存储密码. 如果想要进行加密保存,比如使用CRYPT类型保存,那我具体该怎么生成这种密码呢? (http://wiki.dovecot.org/Authentication/PasswordSchemes)

比如: 
想要将"123456" 转换成md5 hash值,我知道可以在命令行下使用下面的命令,然后填写到配置文件中.
echo -n "123456" |md5sum

但如果想要使用dovecot支持的CRYPT类型来保存密码,我该如何将"123456"生成密文呢? 用什么命令? 谢谢!

--
您收到此邮件是因为您订阅了 Google 网上论坛的“Ubuntu China”论坛。
要向此网上论坛发帖,请发送电子邮件至 ubun...@googlegroups.com
要取消订阅此网上论坛,请发送电子邮件至 ubuntu-cn+...@googlegroups.com
若有更多问题,请通过 http://groups.google.com/group/ubuntu-cn?hl=zh-CN 访问此网上论坛。

Dennis

unread,
Apr 15, 2010, 11:56:09 AM4/15/10
to ubun...@googlegroups.com
忘了说明,我是ubuntu server 8.04 LTS平台下.

2010/4/15 Dennis <ocean...@gmail.com>

ocean

unread,
Apr 18, 2010, 2:19:15 AM4/18/10
to Ubuntu China
dovecot使用passdb password file时,如何对明文密码进行加密?

平台:ubuntu server 8.04 LTS + postfix+dovecot

在密码文件里,默认情况下,是PLAIN类型的,也就是明文存储密码. 如果想要进行加密保存,比如使用CRYPT类型保存,那我具体该怎么生成这种密

Reply all
Reply to author
Forward
0 new messages