From owner-freebsd-questions Mon Jun 29 12:02:49 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id MAA16118 for freebsd-questions-outgoing; Mon, 29 Jun 1998 12:02:49 -0700 (PDT) (envelope-from owner-freebsd-questions@FreeBSD.ORG) Received: from greeves.mfn.org (greeves.mfn.org [204.238.179.3]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id MAA15990 for ; Mon, 29 Jun 1998 12:02:18 -0700 (PDT) (envelope-from sysadmin@greeves.mfn.org) Received: from NOC ([204.238.179.200]) by greeves.mfn.org (8.8.7/8.8.7) with SMTP id OAA02609; Mon, 29 Jun 1998 14:02:50 -0500 (CDT) (envelope-from sysadmin@greeves.mfn.org) Received: by NOC with Microsoft Mail id <01BDA366.4C857BD0@NOC>; Mon, 29 Jun 1998 14:00:40 -0500 Message-ID: <01BDA366.4C857BD0@NOC> From: NOC-IPAD To: Dean Hollister , "'Karl Pielorz'" Cc: FreeBSD Questions Subject: RE: HTML Password changer Date: Mon, 29 Jun 1998 14:00:38 -0500 MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG I don't believe this will work: you are forgetting about the salt, yes? I'm not sure about modern *nix's, but the salt *used* to be available in cleartext at the beginning of the "encrypted" password (SVR3.0e, YMMV)... J.A. Terranson sysadmin@mfn.org ---------- From: Karl Pielorz Sent: Monday, June 29, 1998 6:15 AM To: Dean Hollister Cc: FreeBSD Questions Subject: Re: HTML Password changer 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 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message