Sep-07-2020, 01:50 PM
Hi.
I obtain these data:
ADhlamtsOXdreXE2eAA0VFpWTGJBWDdSZW83d3AwYnJnNlVnSEpRcTlvR0wwMTlldUhSelJ6bXRtTTRnbmUxU
I'm tring to decode and then encode to check that I have the same result but the second python program not gives the result of the first. I'll explain better with examples:
What am I doing wrong? Many thanks and sorry for my English!
I obtain these data:
ADhlamtsOXdreXE2eAA0VFpWTGJBWDdSZW83d3AwYnJnNlVnSEpRcTlvR0wwMTlldUhSelJ6bXRtTTRnbmUxU
I'm tring to decode and then encode to check that I have the same result but the second python program not gives the result of the first. I'll explain better with examples:
$ more decode.py import base64 code = "ADhlamtsOXdreXE2eAA0VFpWTGJBWDdSZW83d3AwYnJnNlVnSEpRcTlvR0wwMTlldUhSelJ6bXRtTTRnbmUxU HpERklwdnFGTzN0eFVzNXgxZlN5" result=base64.b64decode(code) print result # b'admin:202cb962ac59075b964b07152d234b70' $ more code.py import base64 code = "8ejkl9wkyq6x4TZVLbAX7Reo7wp0brg6UgHJQq9oGL019euHRzRzmtmM4gne1PzDFIpvqFO3txUs5x1fSy" result=base64.b64encode(code) print result # b'admin:202cb962ac59075b964b07152d234b70' $ python decode.py 8ejkl9wkyq6x4TZVLbAX7Reo7wp0brg6UgHJQq9oGL019euHRzRzmtmM4gne1PzDFIpvqFO3txUs5x1fSy $ python code.py OGVqa2w5d2t5cTZ4NFRaVkxiQVg3UmVvN3dwMGJyZzZVZ0hKUXE5b0dMMDE5ZXVIUnpSem10bU00Z25lMVB6REZJcHZxRk8zdHhVczV4MWZTeQ=When I code I need obtain ADhlamtsOXdreXE2eAA0VFpWTGJBWDdSZW83d3AwYnJnNlVnSEpRcTlvR0wwMTlldUhSelJ6bXRtTTRnbmUxU
What am I doing wrong? Many thanks and sorry for my English!