From owner-freebsd-java@FreeBSD.ORG Thu Sep 2 01:10:37 2004 Return-Path: Delivered-To: freebsd-java@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 5AB8316A4CE for ; Thu, 2 Sep 2004 01:10:37 +0000 (GMT) Received: from turing.morons.org (turing.morons.org [209.237.229.34]) by mx1.FreeBSD.org (Postfix) with ESMTP id 45B5D43D46 for ; Thu, 2 Sep 2004 01:10:37 +0000 (GMT) (envelope-from freebsd@spatula.net) Received: by turing.morons.org (Postfix, from userid 1001) id 28BE1A92A; Wed, 1 Sep 2004 18:10:37 -0700 (PDT) Received: from localhost (localhost [127.0.0.1]) by turing.morons.org (Postfix) with ESMTP id 024A4A928 for ; Wed, 1 Sep 2004 18:10:36 -0700 (PDT) Date: Wed, 1 Sep 2004 18:10:36 -0700 (PDT) From: Nick Johnson X-X-Sender: spatula@turing.morons.org To: freebsd-java@freebsd.org Message-ID: <20040901175727.I46718@turing.morons.org> X-what-happen: someone set up us the bomb X-Message-Flags: Spatula Precedence: special-delivery MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Subject: FreeBsdCrypt updated X-BeenThere: freebsd-java@freebsd.org X-Mailman-Version: 2.1.1 List-Id: Porting Java to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 02 Sep 2004 01:10:37 -0000 Alas, I don't have the time to make a proper port of this (but if someone else wants to, please do feel free) but since there's an update and folks may find this useful, I thought I'd mention it anyway. FreeBsdCrypt can be found at http://spatula.net/software/FreeBsdCrypt-1.1.jar . This contains an implementation of FreeBSD-style MD5 crypt, which many have found useful when trying to integrate Java stuff with FreeBSD stuff, or migrating from other languages to servlets, or whatever. The jar contains all the API docs, source code, and the complied class. Usage is pretty simple anyway: String result = FreeBsdCrypt.crypt("password", "salt"); The major change in this version is correcting the way the class name is capitalized. It needed to start with an uppercase letter since it's a class name, and then Pascal-casing the rest of it. Consensus on the web seems to be that acronyms of 3 letters or more are to be Pascal-cased. Nick -- "The aptly-named morons.org is an obscenity-laced screed..." -- Robert P. Lockwood, Catholic League director of research Nick Johnson, version 2.1 http://web.morons.org/