import socket


def target_encrypted(target_ip: str) -> bool:
    """
    Checks if the target is using encryption

    :param target_ip: Target IP running the server
    :type target_ip: str
    :return: True or false
    :rtype: bool
    """
    s = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
    s.connect((target_ip, 1978))
    return b'pwd pwd' in s.recv(1024)