[lug] generating linux passwords using openssl
Hugh Brown
hugh at vecna.com
Sun Apr 29 17:04:43 MDT 2001
All of the password generation is done via PAM, so I would try the pam
documentation next.
Hugh
"charles at lunarmedia.net"
>
>
> it would certainly seem that you are correct about the $1 being mistaken
> by the shell as a variable substition since:
>
> openssl passwd -apr1 -salt $1 charles
>
> renders:
>
> $apr1$$$vAaBQkZPAcICTAYmnPq7o.
>
> the "apr" in the passphrase kinda makes me wonder. however escaping the
> character in or out of quotes does not change the output.
>
> this whole scenario comes out of the need to take a clear text password
> and encrypt it within a php script's md5() to verify a user against
> /etc/shadow for access to a webpage. so to get md5() to create an accurate
> hash to compare to /etc/shadow i need to figure out the salt.
>
>
>
More information about the LUG
mailing list