Culture-invariant fluent checksum builder
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
Hashsum.Tests
Hashsum
.gitattributes
.gitignore
Changelog.md
Hashsum.sln
License.txt
Readme.md
appveyor.yml
favicon.png

Readme.md

Hashsum

Build Tests NuGet NuGet

Hashsum is a library for generating checksums based on arbitrary sets of values. It works by invariantly formatting values into a string buffer and calculating hash based on resulting string.

Download

Features

  • Convenient fluent interface
  • Culture and format invariant
  • Pluggable hashing algorithm
  • Targets .NET Framework 4.5+ and .NET Standard 1.3+
  • No external dependencies

Usage

var checksum = new ChecksumBuilder()
    .Mutate("hello world")
    .Mutate(12345678)
    .Mutate(10e-5)
    .Mutate(DateTime.Now)
    .Calculate()
    .ToString(); // 4vKHCvfiiF/RLEfiqMnCkzQ8IYGu4K8erlWyzdsvqrU=

Libraries used