'How to break used base64 code with exec in python

How to break used base64 code with exec in python

import base64

exec(base64.b64encode('I0NvZGVkIGJ5IGNhbnBvbGF0Z2==')


Solution 1:[1]

Is this what you are looking for?

import base64
print(base64.b64decode('I0NvZGVkIGJ5IGNhbnBvbGF0Z2=='))
## b'#Coded by canpolatg'

Solution 2:[2]

To decode base64 encoded data in Python you can use base64.b64decode

base64.b64decode(b'I0NvZGVkIGJ5IGNhbnBvbGF0Z2==')
# b'#Coded by canpolatg'

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 MennoK
Solution 2 szachy-a