mariosaso/mirror-enc — reverse-engineered prompt

Reverse engineered prompt

GitHub

Build me a simple Python desktop chat app called mirror enc.

I want to run one script, choose whether I’m starting a server or joining as a client, then use a small Tkinter window to chat. The server should ask for host, port, and a password. The client should ask for server address, port, password, and a nickname. Only people with the right password can join, and nicknames need to be unique.

Messages should be encrypted while they travel over TCP. Use RSA to safely exchange a shared key, then use Fernet style symmetric encryption for the actual chat messages. The server should support multiple clients in the same room and broadcast messages live. The GUI should have a chat display, input box, send button, auto scroll, and should close or show a clear error if the connection drops.

Keep the code modular and easy to understand, with separate parts for networking, encryption, chat logic, prompts, and the GUI. Include clear setup and run instructions.

Want more depth? Deep Reverse