b0mbastik/Messenger ? reverse-engineered prompt

Reverse engineered prompt

Build me a secure chat app in Python that runs from the terminal and lets two or more people register, log in, see who is online, and send direct messages to each other. It should connect to a central server over TLS, ask for a username and password on first use, create a local identity for each user, and save a certificate so the same account comes back on later logins. Messages should be private end to end, so the server only forwards encrypted text and never reads it.

I want simple commands like help, list users, send a message, and quit. If the saved certificate is missing but the local identity is still there, the app should be able to recover it after proving the user still owns the account. Please include the server, client, shared crypto and protocol code, setup steps for local certificates, and a small test suite. If you need to, look up current Python and cryptography docs online.

Are you gonna build this?

make sure you review the code using coderabbit

Try freeSponsored — opens CodeRabbit in a new tab