From owner-freebsd-java Mon Jan 18 13:59:04 1999 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id NAA18660 for freebsd-java-outgoing; Mon, 18 Jan 1999 13:59:04 -0800 (PST) (envelope-from owner-freebsd-java@FreeBSD.ORG) Received: from misery.sdf.com (misery.sdf.com [204.244.213.49]) by hub.freebsd.org (8.8.8/8.8.8) with SMTP id NAA18641 for ; Mon, 18 Jan 1999 13:58:56 -0800 (PST) (envelope-from tom@sdf.com) Received: from tom by misery.sdf.com with esmtp (Exim 1.82 #3) id 102LiI-0000iq-00; Mon, 18 Jan 1999 12:55:58 -0800 Date: Mon, 18 Jan 1999 12:55:58 -0800 (PST) From: Tom To: Ian Grigg cc: freebsd-java@FreeBSD.ORG Subject: Re: crypt() equiv? In-Reply-To: <199901182023.QAA26961@systemics.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-java@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org 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