Microsoft.Bcl.Cryptography 9.0.1

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.

Showing the top 20 packages that depend on Microsoft.Bcl.Cryptography.

Packages Downloads
Microsoft.Data.SqlClient
The current data provider for SQL Server and Azure SQL databases. This has replaced System.Data.SqlClient. These classes provide access to SQL and encapsulate database-specific protocols, including tabular data stream (TDS). Commonly Used Types: Microsoft.Data.SqlClient.SqlConnection Microsoft.Data.SqlClient.SqlException Microsoft.Data.SqlClient.SqlParameter Microsoft.Data.SqlClient.SqlDataReader Microsoft.Data.SqlClient.SqlCommand Microsoft.Data.SqlClient.SqlTransaction Microsoft.Data.SqlClient.SqlParameterCollection Microsoft.Data.SqlClient.SqlClientFactory When using NuGet 3.x this package requires at least version 3.4.
1
System.Security.Cryptography.Pkcs
Provides support for PKCS and CMS algorithms. Commonly Used Types: System.Security.Cryptography.Pkcs.EnvelopedCms
1

https://go.microsoft.com/fwlink/?LinkID=799421

.NET Framework 4.6.2

.NET 8.0

.NET 9.0

  • No dependencies.

.NET Standard 2.0

Version Downloads Last updated
9.0.1 1 1/18/2025
9.0.0 1 11/14/2024
9.0.0-rc.2.24473.5 1 11/13/2024
9.0.0-rc.1.24431.7 1 11/14/2024
9.0.0-preview.7.24405.7 1 11/14/2024
9.0.0-preview.6.24327.7 1 11/14/2024
9.0.0-preview.5.24306.7 1 11/14/2024
9.0.0-preview.4.24266.19 1 11/14/2024
9.0.0-preview.3.24172.9 1 11/14/2024
9.0.0-preview.2.24128.5 1 11/14/2024
9.0.0-preview.1.24080.9 1 11/14/2024
8.0.0 1 11/14/2024
8.0.0-rc.2.23479.6 1 11/14/2024
8.0.0-rc.1.23419.4 1 11/14/2024
8.0.0-preview.7.23375.6 1 11/14/2024
8.0.0-preview.6.23329.7 1 11/14/2024
8.0.0-preview.5.23280.8 1 11/14/2024
8.0.0-preview.4.23259.5 1 11/14/2024
8.0.0-preview.3.23174.8 1 11/14/2024
8.0.0-preview.2.23128.3 1 11/14/2024