PkcsExtensions 1.1.0

There is a newer version of this package available.
See the version list below for details.
Install-Package PkcsExtensions -Version 1.1.0
dotnet add package PkcsExtensions --version 1.1.0
<PackageReference Include="PkcsExtensions" Version="1.1.0" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add PkcsExtensions --version 1.1.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: PkcsExtensions, 1.1.0"
#r directive can be used in F# Interactive, C# scripting and .NET Interactive. Copy this into the interactive tool or source code of the script to reference the package.
// Install PkcsExtensions as a Cake Addin
#addin nuget:?package=PkcsExtensions&version=1.1.0

// Install PkcsExtensions as a Cake Tool
#tool nuget:?package=PkcsExtensions&version=1.1.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.

PKCS extensions for .Net Standard, .Net Core and Blazor BCL without external dependencies.
Code is focused for AOT compilation, IL linking and using with Blazor (small library, avoid reflection, minimalize internal code dependencies).

Features

  • Namespace PkcsExtensions:
    • ECDsaExtensions - export keys to DER/PEM format on ECDsa.
    • HashAlgorithmConvertor - convert HashAlgorithmName to OID, implementation,...
    • HexConvertor - convert from/to hexadecimal.
    • PemFormater - helper class to convert DER to PEM and back.
    • RSAExtensions - export keys to DER/PEM format on RSA.
    • SecureStringHelper - safe provide SecureString.
  • Namespace PkcsExtensions.Algorithms:
    • DigestRandomGenerator - Secure random generator based on hash algorithm (inspired from Bauncy Castle). Is helpful for password generation and entropy collection.
    • HashAlgorithmExtensions - More friendly extensions for HashAlgorithm types.
    • RngRandomGenerator - wrapper to RandomNumberGenerator
    • SP800_108 - Standard KDF function in counter mode (inspired from Inferno library).
  • Namespace PkcsExtensions.ASN1 - ASN.1 writer and reader from Microsoft corefx repository.
  • Namespace PkcsExtensions.Pkcs1:
    • Pkcs1DigestInfo - Is helpful for RSA signing using SmartCards through PKCS#11.
  • Namespace PkcsExtensions.Pkcs7 - Missing features for SignedCms.
  • Namespace PkcsExtensions.X509Certificates:
    • X509Certificate2Extensions - X509Certificate2 extensions for determine the usage of certificate.
    • X509Certificate2EncodeExtensions - encode (DER/PEM) extension for X509Certificate2
    • X509Certificate2NameInfoExtensions - X509Certificate2 extensions for extract values by OID from isser and subject name - method GetNameInfo.
  • .NETStandard 2.1

    • No dependencies.

NuGet packages (2)

Showing the top 2 NuGet packages that depend on PkcsExtensions:

Package Downloads
PkcsExtensions.Blazor

PKCS Extensions for Blazor WebAssembly, include light interop to WebCrypto.

Harrison314.EntityFrameworkCore.Encryption

This library adds transparent data encryption to Entity Framework Core 5.0 inspired Always Encrypted from MS SQL Server. Work with any database and using standard cryptographic algorithms (AES, HMAC SHA, SP800-108, PBKDF-2,...).

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
1.2.2 142 11/24/2021
1.2.1 93 7/8/2021
1.2.0 239 10/26/2020
1.1.0 332 6/2/2020
1.0.0 294 5/21/2020

1.1.0 - Add support for nullable reference types. Fix ExportECPrivateKey method. Improve security in HexConvertor. Add new methods to HashAlgorithmConvertor.