Vanara.PInvoke.Cryptography 2.2.0

Prefix Reserved
There is a newer version of this package available.
See the version list below for details.
dotnet add package Vanara.PInvoke.Cryptography --version 2.2.0
                    
NuGet\Install-Package Vanara.PInvoke.Cryptography -Version 2.2.0
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Vanara.PInvoke.Cryptography" Version="2.2.0" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Vanara.PInvoke.Cryptography" Version="2.2.0" />
                    
Directory.Packages.props
<PackageReference Include="Vanara.PInvoke.Cryptography" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add Vanara.PInvoke.Cryptography --version 2.2.0
                    
#r "nuget: Vanara.PInvoke.Cryptography, 2.2.0"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package Vanara.PInvoke.Cryptography@2.2.0
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=Vanara.PInvoke.Cryptography&version=2.2.0
                    
Install as a Cake Addin
#tool nuget:?package=Vanara.PInvoke.Cryptography&version=2.2.0
                    
Install as a Cake Tool

Methods, structures and constants imported from BCrypt.dll and NCrypt.dll.

Product Compatible and additional computed target framework versions.
.NET net5.0 was computed.  net5.0-windows was computed.  net6.0 was computed.  net6.0-android was computed.  net6.0-ios was computed.  net6.0-maccatalyst was computed.  net6.0-macos was computed.  net6.0-tvos was computed.  net6.0-windows was computed.  net7.0 was computed.  net7.0-android was computed.  net7.0-ios was computed.  net7.0-maccatalyst was computed.  net7.0-macos was computed.  net7.0-tvos was computed.  net7.0-windows was computed.  net8.0 was computed.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed.  net9.0 was computed.  net9.0-android was computed.  net9.0-browser was computed.  net9.0-ios was computed.  net9.0-maccatalyst was computed.  net9.0-macos was computed.  net9.0-tvos was computed.  net9.0-windows was computed.  net10.0 was computed.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.0-windows was computed. 
.NET Core netcoreapp2.0 is compatible.  netcoreapp2.1 is compatible.  netcoreapp2.2 was computed.  netcoreapp3.0 was computed.  netcoreapp3.1 was computed. 
.NET Standard netstandard2.0 is compatible.  netstandard2.1 was computed. 
.NET Framework net20 is compatible.  net35 is compatible.  net40 is compatible.  net403 was computed.  net45 is compatible.  net451 was computed.  net452 was computed.  net46 was computed.  net461 was computed.  net462 was computed.  net463 was computed.  net47 was computed.  net471 was computed.  net472 was computed.  net48 was computed.  net481 was computed. 
MonoAndroid monoandroid was computed. 
MonoMac monomac was computed. 
MonoTouch monotouch was computed. 
Tizen tizen40 was computed.  tizen60 was computed. 
Xamarin.iOS xamarinios was computed. 
Xamarin.Mac xamarinmac was computed. 
Xamarin.TVOS xamarintvos was computed. 
Xamarin.WatchOS xamarinwatchos was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages (7)

Showing the top 5 NuGet packages that depend on Vanara.PInvoke.Cryptography:

Package Downloads
Vanara.PInvoke.Security

PInvoke API (methods, structures and constants) imported from Windows AdvApi32.dll, Authz.dll, sspicli.dll, schannel.dll, tdh.dll and Secur32.dll.

Vanara.PInvoke.WinTrust

PInvoke API (methods, structures and constants) imported from Windows WinTrust.dll.

Vanara.Library

The full set of packages associated with the Vanara PInvoke Libraries.

Vanara.PInvoke.Msi

PInvoke API (methods, structures and constants) imported from Windows Msi.dll.

Vanara.PInvoke.Drt

PInvoke API (methods, structures and constants) imported from Windows Drt.dll for the Distributed Routing Table (DRT) API.

GitHub repositories (1)

Showing the top 1 popular GitHub repositories that depend on Vanara.PInvoke.Cryptography:

Repository Stars
lithnet/access-manager
Access Manager provides web-based access to local admin (LAPS) passwords, BitLocker recovery keys, and just-in-time administrative access to Windows computers in a modern, secure, and user-friendly way.
Version Downloads Last Updated
4.2.1 2,569 9/9/2025
4.2.0 3,638 8/25/2025
4.1.6 38,545 6/20/2025
4.1.5 1,008 6/20/2025
4.1.4 11,022 6/7/2025
4.1.3 31,690 4/24/2025
4.1.2 6,604 4/16/2025
4.1.1 29,473 3/7/2025
4.1.0 1,482 3/7/2025
4.0.6 6,847 2/24/2025
4.0.5 9,424 2/8/2025
4.0.4 77,045 9/13/2024
4.0.3 107,147 8/5/2024
4.0.2 12,448 6/24/2024
4.0.1 57,669 4/30/2024
4.0.0 16,192 3/29/2024
4.0.0-beta2 1,935 1/22/2024
4.0.0-beta 2,203 11/20/2023
3.4.17 73,688 10/18/2023
3.4.16 46,085 8/7/2023
3.4.15 211,772 5/18/2023
3.4.14 32,631 4/15/2023
3.4.13 27,988 2/4/2023
3.4.12 12,580 1/15/2023
3.4.11 45,400 11/15/2022
3.4.10 19,101 10/25/2022
3.4.9 14,419 10/3/2022
3.4.8 16,646 9/16/2022
3.4.7 12,943 9/3/2022
3.4.6 15,659 8/7/2022
3.4.5 20,389 7/17/2022
3.4.4 12,116 7/5/2022
3.4.3 14,762 6/14/2022
3.4.2 16,112 5/13/2022
3.4.1 12,628 5/5/2022
3.4.0 18,886 3/14/2022
3.3.15 46,318 12/27/2021
3.3.14 12,305 10/26/2021
3.3.13 18,852 9/30/2021
3.3.12 8,153 8/30/2021
3.3.11 25,957 7/22/2021
3.3.10 12,227 6/4/2021
3.3.9 9,746 5/7/2021
3.3.8 7,801 4/7/2021
3.3.7 7,876 3/24/2021
3.3.6 6,346 3/19/2021
3.3.5 7,537 3/1/2021
3.3.4 10,421 2/11/2021
3.3.3 6,152 2/3/2021
3.3.2 6,151 1/21/2021
3.3.1 5,887 1/20/2021
3.3.0 10,117 11/20/2020
3.2.21 5,733 11/13/2020
3.2.20 8,799 11/8/2020
3.2.19 15,134 10/23/2020
3.2.18 5,577 10/21/2020
3.2.17 7,714 9/20/2020
3.2.16 5,968 9/7/2020
3.2.15 5,713 8/30/2020
3.2.14 5,332 8/20/2020
3.2.13 6,347 7/27/2020
3.2.12 5,641 7/13/2020
3.2.11 6,480 6/28/2020
3.2.10 5,709 6/14/2020
3.2.9 5,720 6/3/2020
3.2.7 8,718 5/4/2020
3.2.6 5,610 4/21/2020
3.2.5 5,448 4/15/2020
3.2.4 5,322 4/12/2020
3.2.3 5,512 4/1/2020
3.2.2 5,195 3/24/2020
3.2.1 5,368 3/17/2020
3.2.0 5,541 2/27/2020
3.1.9 5,513 1/17/2020
3.1.8 5,302 1/13/2020
3.1.7 4,842 1/6/2020
3.1.6 4,693 12/12/2019
3.1.5 4,689 11/26/2019
3.1.4 4,787 11/25/2019
3.1.3 4,811 11/8/2019
3.1.2 4,513 11/4/2019
3.1.1 5,858 10/17/2019
3.1.0 4,361 10/3/2019
3.0.1 4,171 9/20/2019
3.0.0 3,929 8/27/2019
2.3.11 3,196 6/9/2019
2.3.10 2,219 6/5/2019
2.3.9 2,163 5/26/2019
2.3.8 2,081 5/13/2019
2.3.7 1,258 4/24/2019
2.3.6 1,232 4/17/2019
2.3.5 1,231 4/10/2019
2.3.4 1,274 3/9/2019
2.3.3 1,175 3/8/2019
2.3.2 1,210 2/28/2019
2.3.1 1,208 2/25/2019
2.3.0 1,277 2/22/2019
2.2.1 1,306 2/12/2019
2.2.0 1,305 2/1/2019
2.1.2 1,631 1/14/2019
2.1.0 1,592 12/15/2018
2.0.1 1,304 12/7/2018

Currently implements:

Functions
BCryptAddContextFunction, BCryptCloseAlgorithmProvider, BCryptConfigureContext, BCryptConfigureContextFunction, BCryptCreateContext, BCryptCreateHash, BCryptCreateMultiHash, BCryptDecrypt, BCryptDeleteContext, BCryptDeriveKey, BCryptDeriveKeyCapi, BCryptDeriveKeyPBKDF2, BCryptDestroyHash, BCryptDestroyKey, BCryptDestroySecret, BCryptDuplicateHash, BCryptDuplicateKey, BCryptEncrypt, BCryptEnumAlgorithms, BCryptEnumContextFunctionProviders, BCryptEnumContextFunctions, BCryptEnumContexts, BCryptEnumProviders, BCryptEnumRegisteredProviders, BCryptExportKey, BCryptFinalizeKeyPair, BCryptFinishHash, BCryptFreeBuffer, BCryptGenerateKeyPair, BCryptGenerateSymmetricKey, BCryptGenRandom, BCryptGetFipsAlgorithmMode, BCryptGetProperty, BCryptHash, BCryptHashData, BCryptImportKey, BCryptImportKeyPair, BCryptKeyDerivation, BCryptOpenAlgorithmProvider, BCryptProcessMultiOperations, BCryptQueryContextConfiguration, BCryptQueryContextFunctionConfiguration, BCryptQueryContextFunctionProperty, BCryptQueryProviderRegistration, BCryptRegisterConfigChangeNotify, BCryptRemoveContextFunction, BCryptResolveProviders, BCryptSecretAgreement, BCryptSetContextFunctionProperty, BCryptSetProperty, BCryptSignHash, BCryptUnregisterConfigChangeNotify, BCryptVerifySignature, NCryptCloseProtectionDescriptor, NCryptCreatePersistedKey, NCryptCreateProtectionDescriptor, NCryptDeleteKey, NCryptDeriveKey, NCryptExportKey, NCryptFinalizeKey, NCryptFreeObject, NCryptGetProtectionDescriptorInfo, NCryptImportKey, NCryptOpenKey, NCryptOpenStorageProvider, NCryptProtectSecret, NCryptQueryProtectionDescriptorName, NCryptRegisterProtectionDescriptorName, NCryptSecretAgreement, NCryptSetProperty, NCryptStreamClose, NCryptStreamOpenToProtect, NCryptStreamOpenToUnprotect, NCryptStreamOpenToUnprotectEx, NCryptStreamUpdate, NCryptUnprotectSecret, TokenBindingDeleteAllBindings, TokenBindingDeleteBinding, TokenBindingGenerateBinding, TokenBindingGenerateID, TokenBindingGenerateMessage, TokenBindingGetKeyTypesClient, TokenBindingGetKeyTypesServer, TokenBindingVerifyMessage

Structures
BCRYPT_ALG_HANDLE, BCRYPT_ALGORITHM_IDENTIFIER, BCRYPT_HANDLE, BCRYPT_HASH_HANDLE, BCRYPT_KEY_HANDLE, BCRYPT_MULTI_HASH_OPERATION, BCRYPT_OAEP_PADDING_INFO, BCRYPT_PKCS1_PADDING_INFO, BCRYPT_PROVIDER_NAME, BCRYPT_PSS_PADDING_INFO, BCRYPT_SECRET_HANDLE, CRYPT_CONTEXT_CONFIG, CRYPT_CONTEXT_FUNCTION_CONFIG, CRYPT_CONTEXT_FUNCTION_PROVIDERS, CRYPT_CONTEXT_FUNCTIONS, CRYPT_CONTEXTS, CRYPT_PROVIDERS, CERT_CONTEXT, CERT_EXTENSION, CERT_INFO, CERT_PUBLIC_KEY_INFO, CRYPT_ALGORITHM_IDENTIFIER, CRYPTOAPI_BLOB, NCRYPT_ALLOC_PARA, NCRYPT_HANDLE, NCRYPT_KEY_HANDLE, NCRYPT_PROV_HANDLE, NCRYPT_SECRET_HANDLE, NCryptBuffer, NCryptBufferDesc, NCRYPT_DESCRIPTOR_HANDLE, NCRYPT_PROTECT_STREAM_INFO, NCRYPT_PROTECT_STREAM_INFO_EX, NCRYPT_STREAM_HANDLE, TOKENBINDING_IDENTIFIER, TOKENBINDING_KEY_TYPES, TOKENBINDING_RESULT_DATA, TOKENBINDING_RESULT_LIST