Javascript + PHP/MySQL encrypted chat

Way back when I first learned how public-key cryptography worked, I wanted to test my knowledge. I’d been looking for a secure web-based text chat, and couldn’t find any. So I decided I’d make one!

Click here to open the chat application. Note that depending on your browser and CPU, a dialogue may pop up asking if you want to terminate a script that is “taking too long”. Please allow it to finish.

Because one of the math libraries I use is CPU intensive and unoptimized, this warning sometimes appears. You shouldn’t see it on a modern computer, and it should take 10 seconds or less otherwise.

Since this was a proof of concept, I’ve never gone back and tried to optimize the library, nor to add many of the useful features that most chat clients have: typing indicators, making the conversation scroll down rather than up, and user-has-blurred-the-window messages.