@@ -0,0 +1,481 @@
+from __future__ import division%0Aimport math%0Aimport base64%0A%0Adef repeating_xor_encrypt(text, key):%0A    padded_key = key * int(math.ceil(len(text) / len(key)))%0A%0A    encrypted = %5Bchr(ord(a) %5E ord(b)) for a, b in zip(text, padded_key)%5D%0A%0A    return base64.b16encode(''.join(encrypted))%0A%0Aif __name__ == '__main__':%0A    text = (%22Burning 'em, if you ain't quick and nimble%5Cn%22%0A           %22I go crazy when I hear a cymbal%22)%0A    key = %22ICE%22%0A%0A    print repeating_xor_encrypt(text, key).lower()%0A

Add solution to challenge 5.