mac

BSides Noida CTF | Macaw Revenge

#bsidesnoidactf #!/usr/bin/env python3 from Crypto.Cipher import AES import os with open('flag.txt') as f: FLAG = f.read() menu = r""" /===== MENU =====\ | | | [M] MAC Gen | | [A] AUTH | | | \================/ """ def MAC(data, check=False…

tetctf 2021 | uncollidable

#tetctf_2021 import json import os from hashlib import sha256 from typing import Callable, Dict H: Callable[[bytes], bytes] = lambda s: sha256(s).digest() def get_mac(key: bytes, data: bytes) -> bytes: """Just a MAC generation function sim…