Microsoft.Bcl.Cryptography 9.0.2
About
This library provides some cryptographic types and functionality for .NET Standard and .NET Framework. This library is not necessary nor recommended when targeting versions of .NET that include the relevant support.
Key Features
- Enables the use of some cryptographic functionality on older .NET platforms.
How to Use
This package should only be used by platforms where the desired functionality is not built-in.
using System.Security.Cryptography;
internal static class Program
{
private static void Main()
{
byte[] key = LoadKey();
SP800108HmacCounterKdf kbkdf = new(key, HashAlgorithmName.SHA256);
byte[] derivedKey = kbkdf.DeriveKey("label"u8, "context"u8, derivedKeyLengthInBytes: 32);
}
}
Main Types
The main types provided by this library are:
System.Security.Cryptography.SP800108HmacCounterKdf
Additional Documentation
Feedback & Contributing
Microsoft.Bcl.Cryptography is released as open source under the MIT license. Bug reports and contributions are welcome at the GitHub repository.
No packages depend on Microsoft.Bcl.Cryptography.
.NET Framework 4.6.2
- System.Formats.Asn1 (>= 9.0.2)
- System.Memory (>= 4.5.5)
- System.Runtime.CompilerServices.Unsafe (>= 6.0.0)
.NET 8.0
- System.Formats.Asn1 (>= 9.0.2)
.NET 9.0
- No dependencies.
.NET Standard 2.0
- System.Formats.Asn1 (>= 9.0.2)
- System.Memory (>= 4.5.5)
- System.Runtime.CompilerServices.Unsafe (>= 6.0.0)
Version | Downloads | Last updated |
---|---|---|
9.0.2 | 1 | 02/22/2025 |
9.0.1 | 0 | 01/14/2025 |
9.0.0 | 0 | 11/12/2024 |
9.0.0-rc.2.24473.5 | 0 | 10/08/2024 |
9.0.0-rc.1.24431.7 | 0 | 09/10/2024 |
9.0.0-preview.7.24405.7 | 0 | 08/13/2024 |
9.0.0-preview.6.24327.7 | 0 | 07/09/2024 |
9.0.0-preview.5.24306.7 | 0 | 06/11/2024 |
9.0.0-preview.4.24266.19 | 0 | 05/21/2024 |
9.0.0-preview.3.24172.9 | 0 | 04/11/2024 |
9.0.0-preview.2.24128.5 | 0 | 03/12/2024 |
9.0.0-preview.1.24080.9 | 0 | 02/13/2024 |
8.0.0 | 0 | 11/14/2023 |
8.0.0-rc.2.23479.6 | 0 | 10/10/2023 |
8.0.0-rc.1.23419.4 | 0 | 09/12/2023 |
8.0.0-preview.7.23375.6 | 0 | 08/08/2023 |
8.0.0-preview.6.23329.7 | 0 | 07/11/2023 |
8.0.0-preview.5.23280.8 | 0 | 06/13/2023 |
8.0.0-preview.4.23259.5 | 0 | 05/16/2023 |
8.0.0-preview.3.23174.8 | 0 | 04/11/2023 |
8.0.0-preview.2.23128.3 | 0 | 03/14/2023 |