Skip to content

Instantly share code, notes, and snippets.

View ngoquoctoandev's full-sized avatar
🎯
Focusing

Ngô Quốc Toản ngoquoctoandev

🎯
Focusing
View GitHub Profile
@ngoquoctoandev
ngoquoctoandev / RSAKeys.cs
Created May 23, 2021 02:14 — 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
{