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
>    Jose

Ha 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

Reply via email to