Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 18 Jan 1999 12:55:58 -0800 (PST)
From:      Tom <tom@sdf.com>
To:        Ian Grigg <iang@systemics.com>
Cc:        freebsd-java@FreeBSD.ORG
Subject:   Re: crypt() equiv?
Message-ID:  <Pine.BSF.4.05.9901181158280.2072-100000@misery.sdf.com>
In-Reply-To: <199901182023.QAA26961@systemics.com>

next in thread | previous in thread | raw e-mail | index | archive | help

On Mon, 18 Jan 1999, Ian Grigg wrote:

> >   ...  I'm more
> > interested in the standard Unix DES crypt() though.
> >
> > > In Cryptix 3.0.3 there is a crypt program, which implements
> > > the DES variant ...
> 
> I just checked, it does do the DES variant, and there is a
> handy dandy test program.
> 
> >   Ugh... rewriting crypt() from scratch seems faster...
> 
> Not sure why that would be, unless you're referring to the
> overhead of Sun's JCE architecture.  If you do rewrite, you
> can test against the Cryptix program, or write this little
> C test from the javadoc:

  Because I looked over the website, and I had no clue how to use
Cryptix to implement a crypt() function.  I looked at JavaDoc, and
stumbled over a crypt3() method, which led me to UnixCrypt.  I don't know
how people find stuff...

  Now, I just need write a function to generate a random.  The UnixCrypt
class docs seem to imply the salt is two characters (default is "AA"), but
isn't it usually 8 characters?

Tom


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-java" in the body of the message



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