Inject a digest filter into an input stream, updating the digest as information flows through it.
Inject a digest filter into an output stream, updating the digest as information flows through it. Here's an example where we calculate an MD5 digest as a side-effect of copying a file: