Microsoft.Bcl.Cryptography 10.0.0

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();
        using 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.AesGcm
  • System.Security.Cryptography.CompositeMLDsa
  • System.Security.Cryptography.MLDsa
  • System.Security.Cryptography.MLKem
  • System.Security.Cryptography.SlhDsa
  • System.Security.Cryptography.SP800108HmacCounterKdf
  • System.Security.Cryptography.X509Certificates.X509CertificateLoader

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
System.Security.Cryptography.Pkcs
Provides support for PKCS and CMS algorithms. Commonly Used Types: System.Security.Cryptography.Pkcs.EnvelopedCms
330
System.Security.Cryptography.Pkcs
Provides support for PKCS and CMS algorithms. Commonly Used Types: System.Security.Cryptography.Pkcs.EnvelopedCms
125
System.Security.Cryptography.Pkcs
Provides support for PKCS and CMS algorithms. Commonly Used Types: System.Security.Cryptography.Pkcs.EnvelopedCms
78
System.Security.Cryptography.Pkcs
Provides support for PKCS and CMS algorithms. Commonly Used Types: System.Security.Cryptography.Pkcs.EnvelopedCms
53
System.Security.Cryptography.Pkcs
Provides support for PKCS and CMS algorithms. Commonly Used Types: System.Security.Cryptography.Pkcs.EnvelopedCms
47
System.Security.Cryptography.Pkcs
Provides support for PKCS and CMS algorithms. Commonly Used Types: System.Security.Cryptography.Pkcs.EnvelopedCms
43
System.Security.Cryptography.Pkcs
Provides support for PKCS and CMS algorithms. Commonly Used Types: System.Security.Cryptography.Pkcs.EnvelopedCms
24
System.Security.Cryptography.Pkcs
Provides support for PKCS and CMS algorithms. Commonly Used Types: System.Security.Cryptography.Pkcs.EnvelopedCms
23
System.Security.Cryptography.Pkcs
Provides support for PKCS and CMS algorithms. Commonly Used Types: System.Security.Cryptography.Pkcs.EnvelopedCms
6
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.
5
System.Security.Cryptography.Pkcs
Provides support for PKCS and CMS algorithms. Commonly Used Types: System.Security.Cryptography.Pkcs.EnvelopedCms
5

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

.NET Framework 4.6.2

.NET Standard 2.1

.NET Standard 2.0

.NET 9.0

  • No dependencies.

.NET 8.0

.NET 10.0

  • No dependencies.

Version Downloads Last updated
10.0.0 1 12/06/2025
10.0.0-rc.2.25502.107 1 11/05/2025
10.0.0-rc.1.25451.107 2 09/15/2025
10.0.0-preview.7.25380.108 2 09/16/2025
10.0.0-preview.6.25358.103 3 08/07/2025
10.0.0-preview.5.25277.114 3 06/29/2025
10.0.0-preview.4.25258.110 4 06/29/2025
10.0.0-preview.3.25171.5 4 06/29/2025
10.0.0-preview.2.25163.2 4 06/29/2025
10.0.0-preview.1.25080.5 4 06/29/2025
9.0.11 0 11/11/2025
9.0.10 1 11/05/2025
9.0.9 2 09/15/2025
9.0.8 2 09/15/2025
9.0.7 3 08/06/2025
9.0.6 4 06/28/2025
9.0.5 4 06/28/2025
9.0.4 4 06/28/2025
9.0.3 4 06/28/2025
9.0.2 5 06/28/2025
9.0.1 4 06/28/2025
9.0.0 4 06/28/2025
9.0.0-rc.2.24473.5 4 06/29/2025
9.0.0-rc.1.24431.7 4 06/29/2025
9.0.0-preview.7.24405.7 4 06/29/2025
9.0.0-preview.6.24327.7 4 06/29/2025
9.0.0-preview.5.24306.7 4 06/29/2025
9.0.0-preview.4.24266.19 4 06/29/2025
9.0.0-preview.3.24172.9 4 06/29/2025
9.0.0-preview.2.24128.5 4 06/29/2025
9.0.0-preview.1.24080.9 4 06/29/2025
8.0.0 4 06/28/2025
8.0.0-rc.2.23479.6 4 06/29/2025
8.0.0-rc.1.23419.4 4 06/29/2025
8.0.0-preview.7.23375.6 4 06/29/2025
8.0.0-preview.6.23329.7 4 06/29/2025
8.0.0-preview.5.23280.8 4 06/29/2025
8.0.0-preview.4.23259.5 4 06/29/2025
8.0.0-preview.3.23174.8 4 06/29/2025
8.0.0-preview.2.23128.3 4 06/29/2025