title: Base64 Incorrect padding error using Python
body: <p>I am trying to decode Base64 into Hex for about 200 Base64 data and I am getting this following error. It does decoding for 60 of them then stops. </p>
  
  <pre><code>ABHvPdSaxrhjAWA=
  0011ef3dd49ac6b8630160
  ABHPdSaxrhjAWA=
  Traceback (most recent call last):
    File "tt.py", line 36, in &lt;module&gt;
      csvlines[0] = csvlines[0].decode("base64").encode("hex")
    File "C:\Python27\lib\encodings\base64_codec.py", line 43, in base64_decode
      output = base64.decodestring(input)
    File "C:\Python27\lib\base64.py", line 325, in decodestring
      return binascii.a2b_base64(s)
  binascii.Error: Incorrect padding
  </code></pre>
  
  <p>Some original Base64 source from CSV  </p>
  
  <pre><code>ABHPdSaxrhjAWA=
  ABDPdSaxrhjAWA=
  ABDPdSaxrhjAWA=
  ABDPdSaxrhjAWA=
  ABDPdSaxrhjAWA=
  ABDPdSaxrhjAWA=
  ABDPdS4xriiAVQ=
  ABDPdSqxrizAU4=
  ABDPdSrxrjPAUo=
  </code></pre>