<commit_before>#! /usr/bin/python
import sys
from Crypto.Cipher import AES
import util


def decrypt_AES128_ECB(ciphertext, password):
	bs = AES.block_size
	cipher = AES.new(password, AES.MODE_ECB)
	plaintext = cipher.decrypt(str(ciphertext))
	return plaintext

input_bytes = bytearray()<commit_msg>Challenge 7<commit_after>#! /usr/bin/python
import sys
from Crypto.Cipher import AES
import util


def decrypt_AES128_ECB(ciphertext, password):
	assert len(ciphertext) % 16 == 0
	assert len(password) == 16
	bs = AES.block_size
	cipher = AES.new(password, AES.MODE_ECB)
	plaintext = cipher.decrypt(str(ciphertext))
	return plaintext

input_bytes = bytearray()
{'fraction_non_alphanumeric': 0.10486322188449848, 'fraction_numerical': 0.0182370820668693, 'mean_word_length': 5.724489795918367, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '878771', 'n_tokens_mistral': 262, 'n_tokens_neox': 229, 'n_words': 55}