Microsoft.Bcl.Cryptography 11.0.0-preview.6.26359.118

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
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.
128
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.
129
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.
130
System.Security.Cryptography.Pkcs
Provides support for PKCS and CMS algorithms. Commonly Used Types: System.Security.Cryptography.Pkcs.EnvelopedCms
120
System.Security.Cryptography.Pkcs
Provides support for PKCS and CMS algorithms. Commonly Used Types: System.Security.Cryptography.Pkcs.EnvelopedCms
121
System.Security.Cryptography.Pkcs
Provides support for PKCS and CMS algorithms. Commonly Used Types: System.Security.Cryptography.Pkcs.EnvelopedCms
124
System.Security.Cryptography.Pkcs
Provides support for PKCS and CMS algorithms. Commonly Used Types: System.Security.Cryptography.Pkcs.EnvelopedCms
129
System.Security.Cryptography.Pkcs
Provides support for PKCS and CMS algorithms. Commonly Used Types: System.Security.Cryptography.Pkcs.EnvelopedCms
130
System.Security.Cryptography.Pkcs
Provides support for PKCS and CMS algorithms. Commonly Used Types: System.Security.Cryptography.Pkcs.EnvelopedCms
133
System.Security.Cryptography.Pkcs
Provides support for PKCS and CMS algorithms. Commonly Used Types: System.Security.Cryptography.Pkcs.EnvelopedCms
135
System.Security.Cryptography.Pkcs
Provides support for PKCS and CMS algorithms. Commonly Used Types: System.Security.Cryptography.Pkcs.EnvelopedCms
140
System.Security.Cryptography.Pkcs
Provides support for PKCS and CMS algorithms. Commonly Used Types: System.Security.Cryptography.Pkcs.EnvelopedCms
147
System.Security.Cryptography.Xml
Provides classes to support the creation and validation of XML digital signatures. The classes in this namespace implement the World Wide Web Consortium Recommendation, "XML-Signature Syntax and Processing", described at http://www.w3.org/TR/xmldsig-core/. Commonly Used Types: System.Security.Cryptography.Xml.CipherData System.Security.Cryptography.Xml.CipherReference System.Security.Cryptography.Xml.DataObject System.Security.Cryptography.Xml.DataReference System.Security.Cryptography.Xml.DSAKeyValue System.Security.Cryptography.Xml.EncryptedData System.Security.Cryptography.Xml.EncryptedKey System.Security.Cryptography.Xml.EncryptedReference System.Security.Cryptography.Xml.EncryptedType System.Security.Cryptography.Xml.EncryptedXml System.Security.Cryptography.Xml.EncryptionMethod System.Security.Cryptography.Xml.EncryptionProperty System.Security.Cryptography.Xml.EncryptionPropertyCollection System.Security.Cryptography.Xml.KeyInfo System.Security.Cryptography.Xml.KeyInfoClause System.Security.Cryptography.Xml.KeyInfoEncryptedKey System.Security.Cryptography.Xml.KeyInfoName System.Security.Cryptography.Xml.KeyInfoNode System.Security.Cryptography.Xml.KeyInfoRetrievalMethod System.Security.Cryptography.Xml.KeyInfoX509Data System.Security.Cryptography.Xml.KeyReference System.Security.Cryptography.Xml.Reference System.Security.Cryptography.Xml.ReferenceList System.Security.Cryptography.Xml.RSAKeyValue System.Security.Cryptography.Xml.Signature System.Security.Cryptography.Xml.SignedInfo System.Security.Cryptography.Xml.SignedXml System.Security.Cryptography.Xml.Transform System.Security.Cryptography.Xml.TransformChain System.Security.Cryptography.Xml.XmlDecryptionTransform System.Security.Cryptography.Xml.XmlDsigBase64Transform System.Security.Cryptography.Xml.XmlDsigC14NTransform System.Security.Cryptography.Xml.XmlDsigC14NWithCommentsTransform System.Security.Cryptography.Xml.XmlDsigEnvelopedSignatureTransform System.Security.Cryptography.Xml.XmlDsigExcC14NTransform System.Security.Cryptography.Xml.XmlDsigExcC14NWithCommentsTransform System.Security.Cryptography.Xml.XmlDsigXPathTransform System.Security.Cryptography.Xml.XmlDsigXsltTransform System.Security.Cryptography.Xml.XmlLicenseTransform
122
System.Security.Cryptography.Xml
Provides classes to support the creation and validation of XML digital signatures. The classes in this namespace implement the World Wide Web Consortium Recommendation, "XML-Signature Syntax and Processing", described at http://www.w3.org/TR/xmldsig-core/. Commonly Used Types: System.Security.Cryptography.Xml.CipherData System.Security.Cryptography.Xml.CipherReference System.Security.Cryptography.Xml.DataObject System.Security.Cryptography.Xml.DataReference System.Security.Cryptography.Xml.DSAKeyValue System.Security.Cryptography.Xml.EncryptedData System.Security.Cryptography.Xml.EncryptedKey System.Security.Cryptography.Xml.EncryptedReference System.Security.Cryptography.Xml.EncryptedType System.Security.Cryptography.Xml.EncryptedXml System.Security.Cryptography.Xml.EncryptionMethod System.Security.Cryptography.Xml.EncryptionProperty System.Security.Cryptography.Xml.EncryptionPropertyCollection System.Security.Cryptography.Xml.KeyInfo System.Security.Cryptography.Xml.KeyInfoClause System.Security.Cryptography.Xml.KeyInfoEncryptedKey System.Security.Cryptography.Xml.KeyInfoName System.Security.Cryptography.Xml.KeyInfoNode System.Security.Cryptography.Xml.KeyInfoRetrievalMethod System.Security.Cryptography.Xml.KeyInfoX509Data System.Security.Cryptography.Xml.KeyReference System.Security.Cryptography.Xml.Reference System.Security.Cryptography.Xml.ReferenceList System.Security.Cryptography.Xml.RSAKeyValue System.Security.Cryptography.Xml.Signature System.Security.Cryptography.Xml.SignedInfo System.Security.Cryptography.Xml.SignedXml System.Security.Cryptography.Xml.Transform System.Security.Cryptography.Xml.TransformChain System.Security.Cryptography.Xml.XmlDecryptionTransform System.Security.Cryptography.Xml.XmlDsigBase64Transform System.Security.Cryptography.Xml.XmlDsigC14NTransform System.Security.Cryptography.Xml.XmlDsigC14NWithCommentsTransform System.Security.Cryptography.Xml.XmlDsigEnvelopedSignatureTransform System.Security.Cryptography.Xml.XmlDsigExcC14NTransform System.Security.Cryptography.Xml.XmlDsigExcC14NWithCommentsTransform System.Security.Cryptography.Xml.XmlDsigXPathTransform System.Security.Cryptography.Xml.XmlDsigXsltTransform System.Security.Cryptography.Xml.XmlLicenseTransform
123
System.Security.Cryptography.Xml
Provides classes to support the creation and validation of XML digital signatures. The classes in this namespace implement the World Wide Web Consortium Recommendation, "XML-Signature Syntax and Processing", described at http://www.w3.org/TR/xmldsig-core/. Commonly Used Types: System.Security.Cryptography.Xml.CipherData System.Security.Cryptography.Xml.CipherReference System.Security.Cryptography.Xml.DataObject System.Security.Cryptography.Xml.DataReference System.Security.Cryptography.Xml.DSAKeyValue System.Security.Cryptography.Xml.EncryptedData System.Security.Cryptography.Xml.EncryptedKey System.Security.Cryptography.Xml.EncryptedReference System.Security.Cryptography.Xml.EncryptedType System.Security.Cryptography.Xml.EncryptedXml System.Security.Cryptography.Xml.EncryptionMethod System.Security.Cryptography.Xml.EncryptionProperty System.Security.Cryptography.Xml.EncryptionPropertyCollection System.Security.Cryptography.Xml.KeyInfo System.Security.Cryptography.Xml.KeyInfoClause System.Security.Cryptography.Xml.KeyInfoEncryptedKey System.Security.Cryptography.Xml.KeyInfoName System.Security.Cryptography.Xml.KeyInfoNode System.Security.Cryptography.Xml.KeyInfoRetrievalMethod System.Security.Cryptography.Xml.KeyInfoX509Data System.Security.Cryptography.Xml.KeyReference System.Security.Cryptography.Xml.Reference System.Security.Cryptography.Xml.ReferenceList System.Security.Cryptography.Xml.RSAKeyValue System.Security.Cryptography.Xml.Signature System.Security.Cryptography.Xml.SignedInfo System.Security.Cryptography.Xml.SignedXml System.Security.Cryptography.Xml.Transform System.Security.Cryptography.Xml.TransformChain System.Security.Cryptography.Xml.XmlDecryptionTransform System.Security.Cryptography.Xml.XmlDsigBase64Transform System.Security.Cryptography.Xml.XmlDsigC14NTransform System.Security.Cryptography.Xml.XmlDsigC14NWithCommentsTransform System.Security.Cryptography.Xml.XmlDsigEnvelopedSignatureTransform System.Security.Cryptography.Xml.XmlDsigExcC14NTransform System.Security.Cryptography.Xml.XmlDsigExcC14NWithCommentsTransform System.Security.Cryptography.Xml.XmlDsigXPathTransform System.Security.Cryptography.Xml.XmlDsigXsltTransform System.Security.Cryptography.Xml.XmlLicenseTransform
128
System.Security.Cryptography.Xml
Provides classes to support the creation and validation of XML digital signatures. The classes in this namespace implement the World Wide Web Consortium Recommendation, "XML-Signature Syntax and Processing", described at http://www.w3.org/TR/xmldsig-core/. Commonly Used Types: System.Security.Cryptography.Xml.CipherData System.Security.Cryptography.Xml.CipherReference System.Security.Cryptography.Xml.DataObject System.Security.Cryptography.Xml.DataReference System.Security.Cryptography.Xml.DSAKeyValue System.Security.Cryptography.Xml.EncryptedData System.Security.Cryptography.Xml.EncryptedKey System.Security.Cryptography.Xml.EncryptedReference System.Security.Cryptography.Xml.EncryptedType System.Security.Cryptography.Xml.EncryptedXml System.Security.Cryptography.Xml.EncryptionMethod System.Security.Cryptography.Xml.EncryptionProperty System.Security.Cryptography.Xml.EncryptionPropertyCollection System.Security.Cryptography.Xml.KeyInfo System.Security.Cryptography.Xml.KeyInfoClause System.Security.Cryptography.Xml.KeyInfoEncryptedKey System.Security.Cryptography.Xml.KeyInfoName System.Security.Cryptography.Xml.KeyInfoNode System.Security.Cryptography.Xml.KeyInfoRetrievalMethod System.Security.Cryptography.Xml.KeyInfoX509Data System.Security.Cryptography.Xml.KeyReference System.Security.Cryptography.Xml.Reference System.Security.Cryptography.Xml.ReferenceList System.Security.Cryptography.Xml.RSAKeyValue System.Security.Cryptography.Xml.Signature System.Security.Cryptography.Xml.SignedInfo System.Security.Cryptography.Xml.SignedXml System.Security.Cryptography.Xml.Transform System.Security.Cryptography.Xml.TransformChain System.Security.Cryptography.Xml.XmlDecryptionTransform System.Security.Cryptography.Xml.XmlDsigBase64Transform System.Security.Cryptography.Xml.XmlDsigC14NTransform System.Security.Cryptography.Xml.XmlDsigC14NWithCommentsTransform System.Security.Cryptography.Xml.XmlDsigEnvelopedSignatureTransform System.Security.Cryptography.Xml.XmlDsigExcC14NTransform System.Security.Cryptography.Xml.XmlDsigExcC14NWithCommentsTransform System.Security.Cryptography.Xml.XmlDsigXPathTransform System.Security.Cryptography.Xml.XmlDsigXsltTransform System.Security.Cryptography.Xml.XmlLicenseTransform
132

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

.NET 10.0

  • No dependencies.

.NET 11.0

  • No dependencies.

.NET Framework 4.6.2

.NET Standard 2.0

.NET Standard 2.1

Version Downloads Last updated
11.0.0-preview.6.26359.118 12 07/18/2026
11.0.0-preview.5.26302.115 95 06/10/2026
11.0.0-preview.4.26230.115 22 05/13/2026
11.0.0-preview.3.26207.106 31 04/14/2026
11.0.0-preview.2.26159.112 38 03/11/2026
11.0.0-preview.1.26104.118 40 02/11/2026
10.0.10 13 07/17/2026
10.0.9 21 06/10/2026
10.0.8 24 05/12/2026
10.0.7 37 04/21/2026
10.0.6 40 04/14/2026
10.0.5 36 03/16/2026
10.0.4 34 03/11/2026
10.0.3 41 02/11/2026
10.0.2 43 01/14/2026
10.0.1 64 12/10/2025
10.0.0 63 11/12/2025
10.0.0-rc.2.25502.107 101 10/15/2025
10.0.0-rc.1.25451.107 93 09/09/2025
10.0.0-preview.7.25380.108 98 08/14/2025
10.0.0-preview.6.25358.103 99 07/16/2025
10.0.0-preview.5.25277.114 113 06/07/2025
10.0.0-preview.4.25258.110 117 05/13/2025
10.0.0-preview.3.25171.5 131 04/11/2025
10.0.0-preview.2.25163.2 108 03/31/2025
10.0.0-preview.1.25080.5 120 03/31/2025
9.0.18 10 07/17/2026
9.0.17 19 06/10/2026
9.0.16 23 05/13/2026
9.0.15 30 04/14/2026
9.0.14 35 03/11/2026
9.0.13 34 02/11/2026
9.0.12 40 01/14/2026
9.0.11 63 11/12/2025
9.0.10 83 10/15/2025
9.0.9 93 09/09/2025
9.0.8 94 08/06/2025
9.0.7 101 07/09/2025
9.0.6 105 06/11/2025
9.0.5 109 05/14/2025
9.0.4 140 04/09/2025
9.0.3 132 03/31/2025
9.0.2 146 03/31/2025
9.0.1 132 03/31/2025
9.0.0 130 11/14/2024
9.0.0-rc.2.24473.5 119 10/14/2024
9.0.0-rc.1.24431.7 135 09/20/2024
9.0.0-preview.7.24405.7 126 08/21/2024
9.0.0-preview.6.24327.7 114 08/21/2024
9.0.0-preview.5.24306.7 141 08/21/2024
9.0.0-preview.4.24266.19 121 08/21/2024
9.0.0-preview.3.24172.9 125 08/21/2024
9.0.0-preview.2.24128.5 124 08/21/2024
9.0.0-preview.1.24080.9 138 08/21/2024
8.0.0 132 08/21/2024
8.0.0-rc.2.23479.6 124 08/21/2024
8.0.0-rc.1.23419.4 115 08/21/2024
8.0.0-preview.7.23375.6 127 08/21/2024
8.0.0-preview.6.23329.7 127 08/21/2024
8.0.0-preview.5.23280.8 148 08/21/2024
8.0.0-preview.4.23259.5 117 08/21/2024
8.0.0-preview.3.23174.8 129 08/21/2024
8.0.0-preview.2.23128.3 123 08/21/2024