@staticmethod
def _xor(msg: str, key: int) ->str:
    """ Applying xor algo to a message in order to make it readable """
    value = ''
    for char in msg:
        value += chr(ord(char) ^ key)
    return value
