holepunchto / hyperswarm

A distributed networking stack for connecting peers.
https://docs.holepunch.to
MIT License
1.04k stars 84 forks source link

Does this encrypt connections? #65

Closed cinnamon-bun closed 3 years ago

cinnamon-bun commented 3 years ago

Are connections between peers encrypted by hyperswarm?

If not, does dat put its own layer of encryption on top of these peer streams?

RangerMauve commented 3 years ago

Hyperswarm doesn't encrypt connections, Dat uses the NOISE protocol for transport level encryption

mafintosh commented 3 years ago

Noise is used in hypercore-protocol for peer authentication and an xsalsa20 stream is afterwards used for the actual encryption to be 100% correct. Hyperswarm itself provides no encryption, just raw connections. Up to the consumer to layer that on top (as the consumer knows how to authenticate peers etc etc)