Skybrud.Essentials v1.1.35
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)
TheToHexString
methods allow converting a byte array to a corresponding HEX string. TheToHexString(byte[])
method will return the HEX string in lower case, whereas theToHexString(byte[], HexFormat)
method overload allows specifying eitherHexFormat.LowerCase
orHexFormat.UpperCase
for the second parameter. -
Introduced new
StringExtensions.ToHexString
extension methods (see 4f35fda)
Similar to the staticStringUtils.ToHexString
utility methods, theStringExtensions.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 aHexFormat
parameter for controlling the case of the returned hash. -
Added new
SecurityUtils.GetSha1Hash
method overloads (see b20f76b)
This introduces two new method overloads with aHexFormat
parameter for controlling the case of the returned hash. -
Added new
SecurityUtils.GetSha256Hash
method overloads (see b20f76b)
This introduces two new method overloads with aHexFormat
parameter for controlling the case of the returned hash. -
Added new
SecurityUtils.Get512Hash
method overloads (see b20f76b)
This introduces two new method overloads with aHexFormat
parameter for controlling the case of the returned hash.