From owner-freebsd-questions Sat Jan 25 11:35: 6 2003 Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 6770F37B401 for ; Sat, 25 Jan 2003 11:35:04 -0800 (PST) Received: from sub21-156.member.dsl-only.net (sub21-156.member.dsl-only.net [63.105.21.156]) by mx1.FreeBSD.org (Postfix) with ESMTP id D4F8943F1E for ; Sat, 25 Jan 2003 11:35:03 -0800 (PST) (envelope-from nkinkade@sub21-156.member.dsl-only.net) Received: from nkinkade by sub21-156.member.dsl-only.net with local (Exim 4.10) id 18cW51-0001vs-00 for FreeBSD-questions@freebsd.org; Sat, 25 Jan 2003 11:35:03 -0800 Date: Sat, 25 Jan 2003 11:35:03 -0800 From: Nathan Kinkade To: FreeBSD-questions@freebsd.org Subject: Re: Misc Questions. Message-ID: <20030125193503.GD2440@sub21-156.member.dsl-only.net> Reply-To: nkinkade@dsl-only.net Mail-Followup-To: FreeBSD-questions@freebsd.org References: <3E32DDB6.7040308@potentialtech.com> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="KdquIMZPjGJQvRdI" Content-Disposition: inline In-Reply-To: <3E32DDB6.7040308@potentialtech.com> User-Agent: Mutt/1.4i Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG --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: > >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 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