Return-Path: Delivered-To: apmail-jakarta-commons-user-archive@www.apache.org Received: (qmail 18711 invoked from network); 1 Oct 2003 18:25:55 -0000 Received: from daedalus.apache.org (HELO mail.apache.org) (208.185.179.12) by minotaur-2.apache.org with SMTP; 1 Oct 2003 18:25:55 -0000 Received: (qmail 8087 invoked by uid 500); 1 Oct 2003 18:25:42 -0000 Delivered-To: apmail-jakarta-commons-user-archive@jakarta.apache.org Received: (qmail 7951 invoked by uid 500); 1 Oct 2003 18:25:41 -0000 Mailing-List: contact commons-user-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Jakarta Commons Users List" Reply-To: "Jakarta Commons Users List" Delivered-To: mailing list commons-user@jakarta.apache.org Received: (qmail 7938 invoked from network); 1 Oct 2003 18:25:41 -0000 Received: from unknown (HELO web20712.mail.yahoo.com) (66.163.169.153) by daedalus.apache.org with SMTP; 1 Oct 2003 18:25:41 -0000 Message-ID: <20031001182546.63288.qmail@web20712.mail.yahoo.com> Received: from [32.97.110.142] by web20712.mail.yahoo.com via HTTP; Wed, 01 Oct 2003 11:25:46 PDT Date: Wed, 1 Oct 2003 11:25:46 -0700 (PDT) From: David Graham Subject: Re: [lang][codec] DigestUtils? To: Jakarta Commons Users List In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N --- Tim O'Brien wrote: > On Wed, 1 Oct 2003, Henri Yandell wrote: > > I've got such a thing myself: > > > > > http://www.osjava.org/genjava-core/apidocs/com/generationjava/security/Securer.html > > > > and do believe it's a good thing. > > > > However it's not within Lang's scope. Codec already has the other half > the > > equation [hex representations] so possibly this could fall withing > Codec's > > realm. > > I believe that at one point a while back we had a contribution that did > just that, but for some reason it wasn't included in the 1.1 release. That contribution came from Struts and the ticket can be found here: http://nagoya.apache.org/bugzilla/show_bug.cgi?id=20990 It was closed as WONTFIX though. David > If > there is a utility class that already exists, it should be added into a > "digest" package. > > > > > > > Hen > > > > On Wed, 1 Oct 2003, Dave Dribin wrote: > > > > > Would there be interest in a DigestUtils class that simplifies using > > > java.security.MessageDigest objects? Personally, I find it a huge > > > pain to do a simple MD5 digest. Also, it's often necessary to > > > get the hex representation of the digest. For starters, I would > > > propose the following API: > > > > > > public static String md5hex(String data); > > > public static String md5hex(bytes[] data); > > > > > > public static byte[] md5(String data); > > > public static byte[] md5(bytes[] data); > > > > > > There could be similar methods for SHA digests. I already have a > > > non-polished implementation that I would be willing to submit (after > > > polishing). > > > > > > -Dave > > > > > > > --------------------------------------------------------------------- > > > To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org > > > For additional commands, e-mail: > commons-user-help@jakarta.apache.org > > > > > > > > > --------------------------------------------------------------------- > > To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org > > For additional commands, e-mail: commons-user-help@jakarta.apache.org > > > > > > > > -- > ---------------------- > Tim O'Brien > Evanston, IL > (847) 863-7045 > tobrien@discursive.com > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org > For additional commands, e-mail: commons-user-help@jakarta.apache.org > __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com --------------------------------------------------------------------- To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org For additional commands, e-mail: commons-user-help@jakarta.apache.org