Date: Sat, 25 Jan 2003 11:35:03 -0800 From: Nathan Kinkade <nkinkade@dsl-only.net> To: FreeBSD-questions@freebsd.org Subject: Re: Misc Questions. Message-ID: <20030125193503.GD2440@sub21-156.member.dsl-only.net> In-Reply-To: <3E32DDB6.7040308@potentialtech.com> References: <F66WZhKmcEntH4NnXoN0000e3f8@hotmail.com> <3E32DDB6.7040308@potentialtech.com>
next in thread | previous in thread | raw e-mail | index | archive | help
[-- Attachment #1 --] On Sat, Jan 25, 2003 at 01:55:50PM -0500, Bill Moran wrote: <snip> > >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. > <snip> 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. Nathan -- GPG Public Key ID: 0x4250A04C gpg --keyserver pgp.mit.edu --recv-keys 4250A04C http://63.105.21.156/gpg_nkinkade_4250A04C.asc [-- Attachment #2 --] -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.1 (FreeBSD) iD8DBQE+MubnWZYS9EJQoEwRAvW9AKCosWxXecowG5GnvHWn+p7lTK6y/QCg1TFm mfSL6Er6LIdwrKWuu9WEyF8= =kafQ -----END PGP SIGNATURE-----
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20030125193503.GD2440>
