Date: Mon, 18 Jan 1999 16:23:10 -0400 (AST) From: Ian Grigg <iang@systemics.com> To: iang@systemics.com, tom@sdf.com Cc: freebsd-java@FreeBSD.ORG Subject: Re: crypt() equiv? Message-ID: <199901182023.QAA26961@systemics.com> In-Reply-To: <Pine.BSF.4.05.9901181038500.2072-100000@misery.sdf.com>
next in thread | previous in thread | raw e-mail | index | archive | help
> ... 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: * <pre> * #include <unistd.h> * main() * { * const char *key = "CryptixRulez"; * const char salt[] = {'o','k'}; * printf("crypt(%s, %s) = %s\n", * key, salt, crypt(key, salt)); * } * </pre> iang PS: http://www.cryptix.org/ 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?199901182023.QAA26961>