calculate_file_checksum

Function calculate_file_checksum 

Source
pub fn calculate_file_checksum<P: AsRef<Path>>(
    path: P,
    algorithm: ChecksumAlgorithm,
) -> Result<String>
Expand description

Calculate a checksum for a file

§Arguments

  • path - Path to the file
  • algorithm - The checksum algorithm to use

§Returns

The checksum as a hex encoded string