[3834] in Athena Bugs

home help back first fref pref prev next nref lref last post

Re: suggestion: /usr/bin/crypt

daemon@ATHENA.MIT.EDU (Win Treese)
Fri Dec 15 21:16:12 1989

To: Richard Basch <probe@ATHENA.MIT.EDU>
Cc: bugs@ATHENA.MIT.EDU, athena-ws@ATHENA.MIT.EDU
In-Reply-To: Your message of Fri, 15 Dec 89 21:01:58 -0500.
Date: Fri, 15 Dec 89 21:15:10 EST
From: Win Treese <treese@CRL.DEC.COM>

/usr/local/bin/crypt (emulation is not precise, but you get the idea).
Much easier than mucking with C code.

	- Win


#!/bin/sh

echo -n "Password: "
stty -echo
read x
stty echo
echo -n "Password: "
stty -echo
read y
stty echo

if [ $x != $y ]; then
	echo Password mismatch -- try again
	
fi

/usr/bin/crypt $x < $1 > $2


home help back first fref pref prev next nref lref last post