If one end is the browser, and the other end is the server, then we already have end-to-end encryption: https (as long as you don't use a TLS terminating CDN).
For example a social network, where I create messages and encrypt them and only my friends can read them, not the server.
For example a social network, where I create messages and encrypt them and only my friends can read them, not the server.