commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ronald Klop" <ronald-freeb...@klop.yi.org>
Subject Re: [Codec?] calculate a fingerprint while reading InputStream ?
Date Wed, 15 Jun 2005 20:59:14 GMT
On Wed, 15 Jun 2005 21:14:37 +0200, Haryon <ha.ryon@gmail.com> wrote:

> Is there a way (in Jakarta Commons) to perform a Hash (MD5 or
> whatever) while reading an InputStream ?
>
> I would like to get a hash of some 20Mo files, and I would not like to
> md5(byte[]) :)
>
> I have seen some MD5InputStream classes out there, but mostly in
> unknown (for me) packages. I wish I could use jakarta tools, since I'm
> using quite of them already.

See java.security.DigestInputStream.

Ronald.

-- 
  Ronald Klop
  Amsterdam, The Netherlands

---------------------------------------------------------------------
To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-user-help@jakarta.apache.org


Mime
View raw message