Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 29 Jun 1998 14:00:38 -0500
From:      NOC-IPAD <sysadmin@greeves.mfn.org>
To:        Dean Hollister <dean@odyssey.apana.org.au>, "'Karl Pielorz'" <kpielorz@tdx.co.uk>
Cc:        FreeBSD Questions <freebsd-questions@FreeBSD.ORG>
Subject:   RE: HTML Password changer
Message-ID:  <01BDA366.4C857BD0@NOC>

next in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?01BDA366.4C857BD0>