If i run:
import base64
data = open('1.dat', 'rb').read()
decoded = base64.b64decode(data)
encoded = base64.b64encode(decoded)
data == encoded
I get "False" as result? How to decode/encode to get the original result?
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.
Collected from the Internet
Please contact [email protected] to delete if infringement.
Comments