From owner-freebsd-questions Mon Jun 29 04:16:02 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id EAA25746 for freebsd-questions-outgoing; Mon, 29 Jun 1998 04:16:02 -0700 (PDT) (envelope-from owner-freebsd-questions@FreeBSD.ORG) Received: from caladan.tdx.co.uk (caladan.tdx.co.uk [195.188.177.4]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id EAA25713 for ; Mon, 29 Jun 1998 04:15:45 -0700 (PDT) (envelope-from kpielorz@tdx.co.uk) Received: from tdx.co.uk (lorca-tx.tdx.co.uk [195.188.177.242]) by caladan.tdx.co.uk (8.8.8/8.8.8) with ESMTP id MAA01214; Mon, 29 Jun 1998 12:15:31 +0100 (BST) (envelope-from kpielorz@tdx.co.uk) Message-ID: <35977752.DE6506C7@tdx.co.uk> Date: Mon, 29 Jun 1998 12:15:30 +0100 From: Karl Pielorz Organization: TDX X-Mailer: Mozilla 4.05 [en] (WinNT; I) MIME-Version: 1.0 To: Dean Hollister CC: FreeBSD Questions Subject: Re: HTML Password changer References: Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Dean Hollister wrote: > > Hiyall, > > I have the necessary code to encrypt the new password and so on, but what > about decrypting the old one, and comparing to the entered one, using > Perl? > > Anyone done it? If your on about passwords from /etc/passwd etc. - you can't decrypt them, it's one way encryption... You have to take the password the user has given you, encrypt it - and them compare the result with the encrypted password on the system... Regards, Karl To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message