The 2024 Wheel Reinvention Jam is in 7 days. September 23-29, 2024. More info
Simple end-to-end encrypted network library in C for Windows

About DerpNet


Single header file library to provide encrypted communication between peers.

It uses Tailscale DERP relays for low bandwidth communications. This allows exchanging data between peers even when both of them are behind NAT.

Communications are end-to-end encrypted. Nobody, even relays, cannot read messages unless they have your PRIVATE key. You only need to share PUBLIC key to others - which other users will use to send messages to you.

Library is available on GitHub: https://github.com/mmozeiko/derpnet

Read more
Filters

Recent Activity

Another &derpnet example - tunneling TCP traffic over derp relay:

  • similar to SSH tunneling, but just using DerpNet api
  • server connects to some TCP port on localhost and forwards all traffic from it to derpnet_proxy remote
  • client listens on local TCP port and forwards all traffic to derpnet_proxy remote
  • example is limited to only single connection to server, but same idea can be extended to support multiple connections
    https://github.com/mmozeiko/derpnet#derpnet_proxy
View original message on Discord

&derpnet ported to JavaScript - https://github.com/mmozeiko/derpnet/blob/main/web

  • implements exactly same protocol as C code, with same encryption guarantees
  • now you can communicate between browser and native code "without running" any extra servers!
  • JS uses websocket to talk to Tailscale DERP server, which relays messages between your peers
  • comes with two examples, one showing basic usage to send & receive messages, and one for exchanging files - both directions, upload to browser and download from browser supported
View original message on Discord

&derpnet - simple end-to-end encrypted network library in C for Windows.

  • single header library to provide encrypted communication between peers
  • uses Tailscale DERP relays for low bandwidth communication even when both peers are behind NAT
  • comes with 3 examples showing simple message exchange, file sharing or chat between users
    https://github.com/mmozeiko/derpnet
View original message on Discord