BouncyCastle cryptography

Rory Braybrook
The new control plane
1 min readJul 30, 2018

Continuing my detour into cryptography, I did a write up on C# CNG RSA.

For part of the project, I needed to use the BouncyCastle library for some features that were not part of .NET.

So I thought I’d do a similar example for doing much the same thing (encrypt / decrypt / sign / validate) for RSA using the BouncyCastle libraries.

The code:

Gist.

Enjoy!

--

--

Rory Braybrook
The new control plane

NZ Microsoft Identity dude and MVP. Azure AD/B2C/ADFS/Auth0/identityserver. StackOverflow: https://bit.ly/2XU4yvJ Presentations: http://bit.ly/334ZPt5