Skip to content

Instantly share code, notes, and snippets.

@ryno1234
ryno1234 / rijndael.cs
Last active October 25, 2023 18:16
Rijndael encrypt / decrypt in C# provided by Phil Fresle (see comments) along with a helper class (AspRijndael) to provide interoperability between Phil's C# version and his original VB Script version.
using System;
using System.Text;
using System.Runtime.InteropServices;
using System.ComponentModel;
using System.Threading;
using System.EnterpriseServices;
using System.Globalization;
namespace RijndaelNs
{