The Bouncy Castle Crypto package is a C# implementation of cryptographic algorithms and protocols, it was developed by the Legion of the Bouncy Castle, a registered Australian Charity, with a little help! The Legion, and the latest goings on with this package, can be found at []( In addition to providing basic cryptography algorithms, the package also provides support for CMS, TSP, X.509 certificate generation and a variety of other standards such as OpenPGP.

Install-Package BouncyCastle -Version
dotnet add package BouncyCastle --version
<PackageReference Include="BouncyCastle" Version="" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add BouncyCastle --version
The NuGet Team does not provide support for this client. Please contact its maintainers for support.

Release Notes

Defects Fixed
EdDSA verifiers now reject overly long signatures.
Fixed field reduction for custom secp128r1 curve.
ASN.1: Enforce no leading zeroes in OID branches (longer than 1 character).
Additional Features and Functionality
TLS: BasicTlsPskIdentity now reusable (returns cloned array from GetPsk).
Improved performance for multiple ECDSA verifications using same public key.
Support has been added for ChaCha20-Poly1305 AEAD mode from RFC 7539.
PKCS12: Improved support for certificate-only key stores without password.


This package has no dependencies.

Showing the top 10 GitHub repositories that depend on BouncyCastle:

Repository Stars
Store securely encrypted backups in the cloud!
mRemoteNG is the next generation of mRemote, open source, tabbed, multi-protocol, remote connections manager.
A cross-platform .NET library for IMAP, POP3, and SMTP.
Windows tray utility / filesystem watcher / launcher for Syncthing
An easy and fast way to build automation and workflows on Windows, Linux, macOS, and the cloud.
NiceHash Miner
An ACME client library and PowerShell client for the .NET platform (Let's Encrypt)
Ethereum .Net cross platform integration library
A .NET MIME creation and parser library with support for S/MIME, PGP, DKIM, TNEF and Unix mbox spools.
Google APIs Client Library for .NET

Read more about the GitHub Usage information on our documentation.

Version History

Version Downloads Last updated 52,657 4/8/2020
1.8.5 1,899,555 3/25/2019
1.8.4 729,790 11/2/2018 639,588 10/2/2018
1.8.2 1,488,348 4/14/2018
1.8.1 5,326,290 4/26/2016
1.7.0 2,339,004 4/30/2011