pub fn algorithm_type(method: &str) -> Result<HashAlgorithm, OptionError>
Select algorithm type to use for hashing file, based on CLI input
use checkasum::hashing::algorithm_type; let _algorithm = algorithm_type("sha256");
Handle unknown algorithm choices
use checkasum::hashing::algorithm_type; let _algorithm = algorithm_type("shaw256");