Skip to content

Instantly share code, notes, and snippets.

View belkka's full-sized avatar
🐍

belkka

🐍
View GitHub Profile
@belkka
belkka / oracle.py
Created July 2, 2024 17:22
AES CBC padding oracle in Python 3
import os
from Crypto.Cipher import AES
class PaddingOracle:
def __init__(self, key: bytes):
assert len(key) in AES.key_size
self.k = key