12345678910111213141516171819 |
- import base64
- def convert_base64_string_to_object(base64_string):
- bytes = base64.b64decode(base64_string)
- string = bytes.decode("ascii")
-
- return string
- if __name__ == "__main__":
-
- user_input = input("Enter a base64 encoded string: ")
-
- result = convert_base64_string_to_object(user_input)
-
- print("Decoded string:", result)
|