def test_single_byte_xor(self): input_string = "1b37373331363f78151b7f2b783431333d78397828372d363c78373e783a393b3736" self.assertEqual(single_byte_xor(input_string), "solution")
def xor_most_frequent(ba1, char=32): most_frequent = sbx.find_most_frequent(ba1) #key = 32 ^ most_frequent key = char ^ most_frequent return sbx.single_byte_xor(ba1, key)