Skip to content

Instantly share code, notes, and snippets.

View Shaimaaiti's full-sized avatar
🏠
Working from home

Shaimaa Abdelhamed Shaimaaiti

🏠
Working from home
View GitHub Profile
@Shaimaaiti
Shaimaaiti / RSAKeys.cs
Created March 15, 2018 20:51 — 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
{