Scott M Stark wrote: > >> > 'raw' for the raw digest byte[], 'base64' and 'hex'. >> > >>Won't the 'raw' option cause problems with the current interfaces which >> all use Strings? >> >> > Yes, it would have to be returned as a String(byte[]). > >
I don't think that will work, because it will depend on the encoding that is in use for the conversion to unicode. You can't guarantee that any random byte as returned as part of a MessageDigest will have a valid representation in the current encoding. If it doesn't then you'll get an exception when you try to convert it to a String, or the offending character will be replaced with standard padding. I'll stick with base64 and hex for the time being... Luke. -- Luke Taylor. Monkey Machine Ltd. PGP Key ID: 0x57E9523C http://www.mkeym.com _______________________________________________ Jboss-development mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-development