# Path: lib/jhash.py
# def base64_to_str(b64):
#     """
#     >>> base64_to_str("TMOhc3psw7M=")
#     'László'
#     """
#     return base64.b64decode(b64.encode()).decode()


import readline    # to overcome the 4k input limit
from lib.jhash import base64_to_str as back
#!/usr/bin/env python3

"""
Convert a base64 string back to a normal string (decode).
"""




def main():
    try:
        inp = input("base64 string> ")
    except (KeyboardInterrupt, EOFError):
        print()
        return
    #
    print("Input: '{}'".format(inp))
    print()

# Path: lib/jhash.py
# def base64_to_str(b64):
#     """
#     >>> base64_to_str("TMOhc3psw7M=")
#     'László'
#     """
#     return base64.b64decode(b64.encode()).decode()


# Path: from_base64.py
import readline    # to overcome the 4k input limit
from lib.jhash import base64_to_str as back

#!/usr/bin/env python3

"""
Convert a base64 string back to a normal string (decode).
"""




def main():
    try:
        inp = input("base64 string> ")
    except (KeyboardInterrupt, EOFError):
        print()
        return
    #
    print("Input: '{}'".format(inp))
    print()

    print(back(inp))