A browser-based chat where the messages are encrypted in the browser so that only the conversation participants can see the messages but not the server, it's just storing them. The messages would be encoded by AES and the key exchange can be done with RSA. The database would store the encription key for every user for every conversation but encrypted with for example the user's password or RSA private key, and the private key would be also encrypted the same way, and when these keys are needed, the server sends them to the browser, the javascript decodes them with the user's account password and voilá. So it would be a browser-based Skype with Mega-like encryption.