On Sat, Jan 25, 2003 at 01:55:50PM -0500, Bill Moran wrote:
> >2. What command can i use if I want to crypt a word and I see it 
> >encrypoted just like the /etc/master.passwd file? For example, I want to 
> >know how the password "foobar" would be encrypted in /etc/master.passwd 
> >if It would be my real passwd.
> I don't know the answer to this one, check the source.

If you are using md5 password hashing for master.passwd then you can use
the command:
# md5 -s "mypassword"
This should show you what the string ``mypassword'' will hash to using
md5.  However, the other options are des and blf (blowfish).  To see
which you are using check the paramter passwd_format in /etc/login.conf.
I don't know what you would use to figure the others, at least not
through bash.

GPG Public Key ID: 0x4250A04C
gpg --keyserver pgp.mit.edu --recv-keys 4250A04C

Attachment: msg16695/pgp00000.pgp
Description: PGP signature

Reply via email to