Andrew,
byte[] yourDigest = ...;
String yourDigestAsString = new String( yourDigest );
Anyway, discussing about the power of a language based on this question is a nonsense and really off track.
Regards
Jose
Andrew Kirilenko wrote:
Hello! On 14:37 Wed 28 May, Jose Gonzalez Gomez wrote:From the java.security.MessageDigest javadoc:MessageDigest md = MessageDigest.getInstance("SHA"); try { md.update(toChapter1); MessageDigest tc1 = md.clone(); byte[] toChapter1Digest = tc1.digest(); md.update(toChapter2); ...etc. } catch (CloneNotSupportedException cnse) { throw new DigestException("couldn't make digest of partial content"); } I think you'd be very surprised about all the thing Java can do. Regards JoseHa ha. I requested not byte array, but STRING! Try to convert this array to string and you will see that this is not so easy :) Best regards, Andrew. -- [EMAIL PROTECTED] mailing list
--
OTN sign
| Jose González Gómez Software Architect |
+34 635 575 994 [EMAIL PROTECTED] http://www.opentechnet.com |
