dotnet add package Spoleto.Cryptography.RSA --version
NuGet\Install-Package Spoleto.Cryptography.RSA -Version
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="Spoleto.Cryptography.RSA" Version="" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Spoleto.Cryptography.RSA --version
#r "nuget: Spoleto.Cryptography.RSA,"
#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.
// Install Spoleto.Cryptography.RSA as a Cake Addin
#addin nuget:?package=Spoleto.Cryptography.RSA&version=

// Install Spoleto.Cryptography.RSA as a Cake Tool
#tool nuget:?package=Spoleto.Cryptography.RSA&version=


The helper for creating X509 certificates from a body and a private key in PEM format for .NET Core 3.1.
Methods are also available: Sign, Verify data based on PEM.


// Create certificate from the body and the private key in PEM format:
var certificate = RSACryptoPemHelper.CreateCertificate(certificatePemText, privateKeyPemText);

var data = "The string to sign";

// Sign data by the private key:
var signedData = RSACryptoPemHelper.Sign(privateKeyPemText, data);

// Verify signed data by the public key in the certificate:
var isVerified = RSACryptoPemHelper.Verify(certificatePemText, data, signedData);

Unit tests

You can find the unit tests here:

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. 
.NET Core netcoreapp3.1 is compatible. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
  • .NETCoreApp 3.1

    • No dependencies.

NuGet packages (1)

Showing the top 1 NuGet packages that depend on Spoleto.Cryptography.RSA:

Package Downloads

C# SDK для интеграции с системой быстрых платежей для API Альфа-Банка. The project for integration with Fast Payment System based on the AlfaBank host.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated 1,336 10/18/2022 1,765 10/12/2022 371 10/12/2022 352 10/12/2022 371 10/12/2022 356 10/12/2022 381 10/12/2022 364 10/12/2022 370 10/12/2022 364 10/12/2022 362 10/12/2022 367 10/11/2022 355 10/11/2022 367 10/11/2022 370 10/11/2022 373 10/11/2022 378 10/11/2022