예제 #1
0
def client(conn):
    while True:
        reply = input("\nSEND: ")
        if reply == "exit":
            break
        reply = "\nversion: 0.2" + "\r\nfrom: Jason" + "\r\nto: Friend" + "\r\n" + "\r\n" + reply
        reply = RC4.secret(reply)
        conn.send(reply)
    print("[DISCONNECTED]")
    conn.close()