From owner-freebsd-java Mon Jan 18 12:23:19 1999 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id MAA04219 for freebsd-java-outgoing; Mon, 18 Jan 1999 12:23:19 -0800 (PST) (envelope-from owner-freebsd-java@FreeBSD.ORG) Received: from systemics.ai (systemics.ai [209.88.68.48]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id MAA04211 for ; Mon, 18 Jan 1999 12:23:14 -0800 (PST) (envelope-from iang@systemics.com) Received: from menger.systemics.ai (systemics.com) [209.88.68.60] by systemics.ai with esmtp (Exim 2.05 #1 (Debian)) id 102LCI-0007Ak-00; Mon, 18 Jan 1999 20:22:54 +0000 Received: (from iang@localhost) by systemics.com (8.8.8/8.8.8) id QAA26961; Mon, 18 Jan 1999 16:23:10 -0400 (AST) (envelope-from iang) Date: Mon, 18 Jan 1999 16:23:10 -0400 (AST) From: Ian Grigg Message-Id: <199901182023.QAA26961@systemics.com> To: iang@systemics.com, tom@sdf.com Subject: Re: crypt() equiv? Cc: freebsd-java@FreeBSD.ORG Reply-To: iang@systemics.com In-Reply-To: Sender: owner-freebsd-java@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org > ... 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: *
     *    #include 
     *    main()
     *    {
     *        const char *key = "CryptixRulez";
     *        const char salt[] = {'o','k'};
     *        printf("crypt(%s, %s) = %s\n",
     *               key, salt, crypt(key, salt));
     *    }
     * 
iang PS: http://www.cryptix.org/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-java" in the body of the message