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. 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: [EMAIL PROTECTED] > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > > -- ---------------------- Tim O'Brien Evanston, IL (847) 863-7045 [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
