Convert hex to base64

See http://cryptopals.com/sets/1/challenges/1 for the problem description.


In [ ]:
X = "49276d206b696c6c696e6720796f757220627261696e206c696b65206120706f69736f6e6f7573206d757368726f6f6d"
Y = hex2bytes(X);
Z = base64encode(Y)