From owner-freebsd-questions Mon Jun 29 04:13:40 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id EAA25094 for freebsd-questions-outgoing; Mon, 29 Jun 1998 04:13:40 -0700 (PDT) (envelope-from owner-freebsd-questions@FreeBSD.ORG) Received: from tyree.iii.co.uk (tyree.iii.co.uk [195.89.149.230]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id EAA25081 for ; Mon, 29 Jun 1998 04:13:30 -0700 (PDT) (envelope-from nik@iii.co.uk) From: nik@iii.co.uk Received: from carrig.strand.iii.co.uk (carrig.strand.iii.co.uk [192.168.7.25]) by tyree.iii.co.uk (8.8.8/8.8.8) with ESMTP id MAA03328; Mon, 29 Jun 1998 12:13:28 +0100 (BST) Received: (from nik@localhost) by carrig.strand.iii.co.uk (8.8.8/8.8.7) id MAA05610; Mon, 29 Jun 1998 12:13:06 +0100 (BST) Message-ID: <19980629121305.46423@iii.co.uk> Date: Mon, 29 Jun 1998 12:13:05 +0100 To: Dean Hollister Cc: FreeBSD Questions Subject: Re: HTML Password changer References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.85e In-Reply-To: ; from Dean Hollister on Mon, Jun 29, 1998 at 06:09:22PM +0800 Organization: interactive investor Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Mon, Jun 29, 1998 at 06:09:22PM +0800, Dean Hollister wrote: > 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? You don't. You encrypt the password the user entered, and then compare the encrypted new password with the encrypted stored password. If they match then the two 'clear' passwords are identical. N -- Work: nik@iii.co.uk | FreeBSD + Perl + Apache Rest: nik@nothing-going-on.demon.co.uk | Remind me again why we need Play: nik@freebsd.org | Microsoft? To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message