sha2_hasher
A trait for hashing a file using the SHA-2 family of algorithms.
I found myself repeatedly writing code to hash files using the SHA256, so I wrote this tiny trait to make my life easier.
Crate Features
async: Enables the async implementation.sync: Enables the sync implementation.
At least one implementation feature must be enabled. When both are enabled, the async trait is
available at the crate root and the sync trait is available as sha2_hasher::sync::Sha2Hasher.
Usage
Async
// Enable with: --features async
use Sha2Hasher;
async
Sync
// Enable with: --features sync
use Sha2Hasher;
License
MIT. See LICENSE for details.