Date | 2022-01-14 (1,036 days ago) |
---|---|
Downloads | 2,281 downloads |
NuGet | View on NuGet |
GitHub | View on GitHub |
Target Frameworks | .NET Standard 1.1 .NET Standard 1.3 .NET Standard 2.0 .NET 4.5 .NET 4.6 .NET 4.7 .NET 4.8 |
#installation
">InstallationInstall 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
">ChangelogIntroduced 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.