Skip to content

Instantly share code, notes, and snippets.

View valep27's full-sized avatar

Valerio Pipolo valep27

  • Amsterdam, NL
View GitHub Profile
@valep27
valep27 / RSAKeys.cs
Created December 13, 2017 09:44 — forked from therightstuff/RSAKeys.cs
Import and export RSA Keys between C# and PEM format using BouncyCastle
using Org.BouncyCastle.Crypto;
using Org.BouncyCastle.Crypto.Parameters;
using Org.BouncyCastle.OpenSsl;
using Org.BouncyCastle.Security;
using System;
using System.IO;
using System.Security.Cryptography;
namespace MyProject.Data.Encryption
{