Redian新闻
>
anyone know how to generate encrypted passwd by crypt() ?
avatar
anyone know how to generate encrypted passwd by crypt() ?# Unix - 噫吁兮,危乎高哉
d*e
1
anyone know how to generate encrypted passwd by crypt() ?
according to the man page, crypt() takes 2 parameters:
crypt(cosnt char *key, cosnt char *salt)
the result is a 13 char string.
however, the encrypted password at /etc/shadow has this
format:
$1$abcdefrg$abcdefrg1234567890qwer
there're 8 char between the 2nd $ and the 3rd $, and another
22 char after the 3rd $.
anyone know how this encrypted password is generated? using
crypt() or else? I can't find any man page about that. no
man page fo
相关阅读
logo
联系我们隐私协议©2024 redian.news
Redian新闻
Redian.news刊载任何文章,不代表同意其说法或描述,仅为提供更多信息,也不构成任何建议。文章信息的合法性及真实性由其作者负责,与Redian.news及其运营公司无关。欢迎投稿,如发现稿件侵权,或作者不愿在本网发表文章,请版权拥有者通知本网处理。