d******e 发帖数: 143 | 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 |
|