Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 12 Jan 1997 18:59:42 -0700 (MST)
From:      Brandon Gillespie <brandon@cold.org>
To:        Robert Chalmers <robert@nanguo.chalmers.com.au>
Cc:        bsd <freebsd-questions@freebsd.org>
Subject:   Re: is there a crypt tool?
Message-ID:  <Pine.NEB.3.95.970112185646.893A-100000@cold.org>
In-Reply-To: <199701112327.JAA22330@nanguo.chalmers.com.au>

next in thread | previous in thread | raw e-mail | index | archive | help
> More to the point, is there a crypt too anywhere. I can't find
> anything on the CD. I know its in the libraries etc, but I need a program,
> seen on Coherent believe it or not, called 'crypt'. Great for creating
> passworded access on the fly.

Create a file named 'crypt', put the following in it, make it executable:

#!/usr/bin/perl

$what = $ARGV[0] || die("Syntax: crypt <what> <salt>\n");
$salt = $ARGV[1] || die("Syntax: crypt <what> <salt>\n");

print crypt($what, $salt) . "\n";





Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.NEB.3.95.970112185646.893A-100000>