PublicKeyUtils 3.0.0

There is a newer version of this package available.
See the version list below for details.
dotnet add package PublicKeyUtils --version 3.0.0
                    
NuGet\Install-Package PublicKeyUtils -Version 3.0.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="PublicKeyUtils" Version="3.0.0" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="PublicKeyUtils" Version="3.0.0" />
                    
Directory.Packages.props
<PackageReference Include="PublicKeyUtils" />
                    
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 PublicKeyUtils --version 3.0.0
                    
#r "nuget: PublicKeyUtils, 3.0.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 PublicKeyUtils@3.0.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=PublicKeyUtils&version=3.0.0
                    
Install as a Cake Addin
#tool nuget:?package=PublicKeyUtils&version=3.0.0
                    
Install as a Cake Tool

PublicKeyUtils

PublicKeyUtils is an open-source .NET class library designed to simplify working with public keys for cryptographic operations. It provides utilities for encryption, decryption, signing, and verification using public keys. The library is built with extensibility and ease of use in mind, making it a great choice for developers working with RSA and ECC cryptography.

Features

  • RSA Public Key Operations:

    • Encrypt data using RSA public keys with support for various padding schemes (e.g., RSA-OAEP).
    • Decode and parse RSA public key components (modulus and exponent) from Base64URL-encoded strings.
  • ECC Public Key Operations:

    • Verify digital signatures using ECC public keys.
    • Support for named curves such as P-256, P-384, and P-521.
    • Hash algorithm support for SHA-1, SHA-256, SHA-384, and SHA-512.
  • JSON Serialization:

    • Public key properties are annotated with System.Text.Json.Serialization attributes for seamless JSON serialization and deserialization.
  • Unit Tests:

    • Comprehensive test coverage using xUnit to ensure correctness and reliability.

Installation

The library is available as a NuGet package. You can install it using the following command:

dotnet add package PublicKeyUtils

Alternatively, visit the NuGet package page for more details.

Contributing

Contributions are welcome! If you have ideas for new features, bug fixes, or improvements, feel free to open an issue or submit a pull request on the GitHub repository.

CI/CD

This project uses GitHub Actions for continuous integration and deployment. On every push to a version tag (e.g., v2.0.0), the library is automatically built, packaged, and published to NuGet. See the release workflow for more details.

License

This project is licensed under the MIT License. See the LICENSE file for details.

Acknowledgments

Special thanks to all contributors and the open-source community for their support and feedback.

Product Compatible and additional computed target framework versions.
.NET net8.0 is compatible.  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. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
  • net8.0

    • No dependencies.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
10.0.0 188 11/26/2025
3.0.0 291 4/13/2025
2.0.1 168 4/13/2025
1.0.1 182 4/12/2025
1.0.0 172 4/12/2025