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
--KdquIMZPjGJQvRdI Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable 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=20 > >encrypoted just like the /etc/master.passwd file? For example, I want to= =20 > >know how the password "foobar" would be encrypted in /etc/master.passwd= =20 > >if It would be my real passwd. >=20 > I don't know the answer to this one, check the source. >=20 <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 --=20 GPG Public Key ID: 0x4250A04C gpg --keyserver pgp.mit.edu --recv-keys 4250A04C http://63.105.21.156/gpg_nkinkade_4250A04C.asc --KdquIMZPjGJQvRdI Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.1 (FreeBSD) iD8DBQE+MubnWZYS9EJQoEwRAvW9AKCosWxXecowG5GnvHWn+p7lTK6y/QCg1TFm mfSL6Er6LIdwrKWuu9WEyF8= =kafQ -----END PGP SIGNATURE----- --KdquIMZPjGJQvRdI-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20030125193503.GD2440>