Date: Tue, 10 Jul 2001 03:54:21 -0400 (EDT) From: Jim Weeks <jim@siteplus.net> To: Gregory Bond <gnb@itga.com.au> Cc: stable@FreeBSD.ORG Subject: Re: Generating encrypted passwords Message-ID: <Pine.BSF.4.21.0107100350070.1070-100000@veager.siteplus.net> In-Reply-To: <Pine.BSF.4.21.0107100336560.1040-100000@veager.siteplus.net>
next in thread | previous in thread | raw e-mail | index | archive | help
To place credit where credit is due, I don't know where I got the four lines responsible for creating the salt. @passset = ('a'..'z'); for ($i = 0; $i < 2; $i++) { $randum_num = int(rand($#passset + 1)); $salt .= @passset[$randum_num]; } $htpass = crypt($Form{'np'}, "$salt"); -- Jim Weeks To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-stable" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.4.21.0107100350070.1070-100000>