This module allows you to calculate digests while reading or writing file handles. This avoids the case you need to reread the same content to compute the digests after written a file. WWW: https://metacpan.org/release/IO-Digest