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
@therightstuff
therightstuff / RSAKeys.cs
Last active November 3, 2023 16:34
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
{