Add a DirectoryHashCalculator in Cake.Commen.Security for creating a hash of an given directory?
The usage would be about the same as the FileHashCalculator, just that a DirectoryPath is specified instead of a FilePath. The implementation should return a DirectoryHash instead of a FileHash.
The private GetHashAlgorithm function in FileHashCalculator should be outsourced for common use.
Add a DirectoryHashCalculator in Cake.Commen.Security for creating a hash of an given directory?
The usage would be about the same as the FileHashCalculator, just that a DirectoryPath is specified instead of a FilePath. The implementation should return a DirectoryHash instead of a FileHash.
The private GetHashAlgorithm function in FileHashCalculator should be outsourced for common use.