python decode base64 string to object code example
Example 1: decode base64 python
import base64
msg = base64.b64decode(msg)
Example 2: base64 python decode
import base64
coded_string = '''Q5YACgA...'''
base64.b64decode(coded_string)
Example 3: decode base64 with python
#== Decoding ==#
import base64
base64_message = 'UHl0aG9uIGlzIGZ1bg=='
base64_bytes = base64_message.encode('ascii')
message_bytes = base64.b64decode(base64_bytes)
message = message_bytes.decode('ascii')
print(message)