Skip to content

Instantly share code, notes, and snippets.

View alejomongua's full-sized avatar

Alejandro Mongua alejomongua

  • Bogotá, Colombia
View GitHub Profile
@bonsaiviking
bonsaiviking / aes.py
Last active February 22, 2024 03:35
A simple/simplistic implementation of AES in pure Python.
#My AES implementation
# By Daniel Miller
def xor(s1, s2):
return tuple(a^b for a,b in zip(s1, s2))
class AES(object):
class __metaclass__(type):
def __init__(cls, name, bases, classdict):
cls.Gmul = {}