/Hashsum

Culture-invariant fluent checksum builder

Primary LanguageC#MIT LicenseMIT

Hashsum

Build Tests NuGet NuGet Donate Donate

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

Donate

If you really like my projects and want to support me, consider donating to me on Patreon or BuyMeACoffee. All donations are optional and are greatly appreciated. 🙏