Different output after decode and encode data (base64)
<p>If i run:</p>

<pre><code>import base64
data = open('1.dat', 'rb').read()
decoded = base64.b64decode(data)
encoded = base64.b64encode(decoded)
data == encoded
</code></pre>

<p>I get "False" as result?
How to decode/encode to get the original result?</p>

<p>Base64 is not base64 unfortunately. There may be differences in the implementations. Some implementation for example insert line breaks every 76 characters when encoding, some don't.</p>

python base64