Challenge Accepted!

I have recently been experimenting with the cryptopals crypto challenges, and have found them very interesting. Below are my solutions to set 1, which I will be expanding as I go. Please play around with them.

1) Convert a Hex string to Base64.

Hex Input:
Base64 Result: [python trigger=’challenge1′ file=”/home/chris/trunk/personal/experiments/crypto_challenge/web_set1.py”]

2) Calculate fixed XOR of two Hex strings of identical length.

Hex Input 1:
Hex Input 2:
Base64 Result: [python trigger=’challenge2′ file=”/home/chris/trunk/personal/experiments/crypto_challenge/web_set1.py”]

3) Decrypt Hex encoded string which has been encrypted with single byte XOR cipher.

Hex Input:
Decrypted Result: [python trigger=’challenge3′ file=”/home/chris/trunk/personal/experiments/crypto_challenge/web_set1.py”]

5) Encrypt message with Repeating-Key XOR Cipher.

Message:
Encryption Key:
Encrypted Message (hex): [python trigger=’challenge5′ file=”/home/chris/trunk/personal/experiments/crypto_challenge/web_set1.py”]