jsonhash 0.2.0

A command-line tool to generate hash values for files. SHA256 and MD5. Output and Error messages in JSON format.
Documentation
1
2
3
4
5
6
// Trait defining a generic hash algorithm
pub trait HashAlgorithm {
    fn new() -> Self where Self: Sized;
    fn update(&mut self, data: &[u8]);
    fn finalize(&mut self) -> String;
}