News for hackers. Stuff that matters.
Re:P2P WhatsApp, Instagram and Metaverse in a PWA by nittanymount on Sunday March 24, 2024 @05:33PM (#39810714)
nice one.

each party generates a public/private key pair, the key in the url is a public key to exchange with a peer, then the communication is encoded/decoded with the keys, right ?

Re:P2P WhatsApp, Instagram and Metaverse in a PWA by Screen8774 on Sunday March 24, 2024 @06:08PM (#39810959)
The peerjs connection ID is what is shared.

On first-connection, the keys are generated and exchanged over webrtc. it only does this on the first-time-connection.

On subsequent connections, the keys are used to validate identity else the connection is rejected.