Skip to content

Instantly share code, notes, and snippets.

View ryno1234's full-sized avatar

Ryan Griffith ryno1234

View GitHub Profile
@ryno1234
ryno1234 / rijndael.asp
Created September 8, 2015 21:36
AES Rijndael implementation from Phil Fresle provided for archive purposes.
<%
'Option Explicit
' Rijndael.asp
' Copyright 2001 Phil Fresle
' phil@frez.co.uk
' http://www.frez.co.uk
' Implementation of the AES Rijndael Block Cipher. Inspired by Mike Scott's
' implementation in C. Permission for free direct or derivative use is granted
' subject to compliance with any conditions that the originators of the
' algorithm place on its exploitation.
@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
{