incubator-depot-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Michael Davey <Michael.Da...@coderage.org>
Subject Re: Wiring up MD5
Date Tue, 04 May 2004 19:11:06 GMT
Adam R. B. Jack wrote:

>  
>
> As such I'd like to develop something like a stream that does the MD5 
> check
> as it is being written to, wrapped around some sort of tempfile(). If a
> stream isn't overkill, then the MD5 check could complete in the 
> close() and
> if failed, perhaps destroy the file. We could attempt to re-write it with
> blanks, then try to delete it.
>
> Anybody got any thoughts on this? Anybody got any experience with similar
> things?

You know about java.security.DigestOutputStream and the similar 
java.crypt.MD5OutputStream from the cryptix package, right?  It should 
be fairly straightforward to achieve what you want using either of these.

-- 
Michael


Mime
View raw message