import base64


def encode_message(string: str) -> str:
    """
    Encode string in base64.
    Args:
        string (str): String to decode.

    Returns:
        str: Encoded string.

    """
    message_bytes = string.encode('utf-8')

    return base64.b64encode(message_bytes).decode("utf-8")