Skip to main content
.NETFramework4.6.2net8.0net9.0.NETStandard2.0

Provides support for some cryptographic primitives for .NET Framework and .NET Standard.

Published
Feb 10, 2026
8mo ago
Total Downloads
290.6M
290,631,888

Install

dotnet add package Microsoft.Bcl.Cryptography --version 9.0.13
ProductVersions
.NET
net8.0net9.0
.NET Standard
netstandard2.0
Other
.NETFramework4.6.2

README

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.

Changes from Previous Version

No structural changes between v9.0.12 and v9.0.13.

Adoption Assessment

A verified publisher signal is available. Assess fit from the package's supported frameworks, license and dependency graph rather than popularity alone.

Compatibility metadata lists 4 target frameworks; confirm the exact target used by your application.

Related Guides & Workflows

Learn how to evaluate, integrate, or audit this package in your .NET project.