title: Hex to Base64 conversion in Python
body: <p>I want to convert a simple HEX string such as <code>10000000000002ae</code> to Base64.</p>
  <p>The hex string is to be converted to bytes, and the bytes are then encoded to base64 notation, so the expected output for that string: <code>EAAAAAAAAq4=</code></p>
  <p>I found a tool online: <a href="http://tomeko.net/online_tools/hex_to_base64.php?lang=en" rel="noreferrer">http://tomeko.net/online_tools/hex_to_base64.php?lang=en</a></p>
  <p>But I have a bunch of HEX values that I need to convert in a script.</p>