holepunchto / hyperswarm-secret-stream

Secret stream backed by Noise and libsodium's secretstream
Apache License 2.0
35 stars 14 forks source link

feat: opts.unsafeDisableEncryption #25

Open gmaclennan opened 8 months ago

gmaclennan commented 8 months ago

Adds an option to disable encryption. This is useful for piping over a transport stream that is already encrypted, but the handshake to confirm public keys is still useful.

Fixes #21

gmaclennan commented 8 months ago

In terms of encryption overhead, one of the tests write 1GB of data to the stream. On my machine (Macbook Pro M2) this takes ~4100ms, but without encryption takes ~200ms.

gmaclennan commented 8 months ago

ping @mafintosh