Skip to content

Instantly share code, notes, and snippets.

@strommen
strommen / CertificateCrypto.cs
Last active December 7, 2022 19:08
Two-Way Encryption for Azure Web Roles
// This is free and unencumbered software released into the public domain. (For the full license statement, see the bottom of this gist)
using Microsoft.WindowsAzure;
using System.IO;
using System.Linq;
using System.Security.Cryptography;
using System.Security.Cryptography.X509Certificates;
// See https://www.fasterweb.io/Blog/two-way-encryption-for-azure-web-roles for the context around this.
namespace FasterWeb
{