Skip to content

Skybrud.Essentials v1.1.35

Compare
Choose a tag to compare
@abjerner abjerner released this 14 Jan 16:58

Installation

Install the NuGet package - either via the .NET CLI:

dotnet add package Skybrud.Essentials --version 1.1.35

or the NuGet package manager:

Install-Package Skybrud.Essentials -Version 1.1.35

Changelog

  • Introduced new StringUtils.ToHexString utility methods (see 4f35fda)
    The ToHexString methods allow converting a byte array to a corresponding HEX string. The ToHexString(byte[]) method will return the HEX string in lower case, whereas the ToHexString(byte[], HexFormat) method overload allows specifying either HexFormat.LowerCase or HexFormat.UpperCase for the second parameter.

  • Introduced new StringExtensions.ToHexString extension methods (see 4f35fda)
    Similar to the static StringUtils.ToHexString utility methods, the StringExtensions.ToHexString offer the same functionality but as extension methods.

  • Introduced new SecurityUtils.GetHmacSha1Hash methods (see b20f76b)
    This introduces four new method signatures for getting the HMACSHA1 hash of a given key and value.

  • Introduced new SecurityUtils.GetHmacSha256Hash methods (see b20f76b)
    This introduces four new method signatures for getting the HMACSHA256 hash of a given key and value.

  • Introduced new SecurityUtils.GetHmacSha512Hash methods (see b20f76b)
    This introduces four new method signatures for getting the HMACSHA512 hash of a given key and value.

  • Added new SecurityUtils.GetMd5Hash method overloads (see b20f76b)
    This introduces two new method overloads with a HexFormat parameter for controlling the case of the returned hash.

  • Added new SecurityUtils.GetSha1Hash method overloads (see b20f76b)
    This introduces two new method overloads with a HexFormat parameter for controlling the case of the returned hash.

  • Added new SecurityUtils.GetSha256Hash method overloads (see b20f76b)
    This introduces two new method overloads with a HexFormat parameter for controlling the case of the returned hash.

  • Added new SecurityUtils.Get512Hash method overloads (see b20f76b)
    This introduces two new method overloads with a HexFormat parameter for controlling the case of the returned hash.