private string GetHashForFile(string file) { var fileAsBytes = _iOHelper.ReadBytesForFile(file); using (SHA1CryptoServiceProvider sha1 = new SHA1CryptoServiceProvider()) { return(Convert.ToBase64String(sha1.ComputeHash(fileAsBytes))); } }
private string GetHashForFile(string file) { var fileAsBytes = _iOHelper.ReadBytesForFile(file); using (SHA1CryptoServiceProvider sha1 = new SHA1CryptoServiceProvider()) { return(Convert.ToBase64String(sha1.ComputeHash(fileAsBytes))); } }