Darkwire.io

Open source

Browser-based chat with end-to-end encryption, using socket.io and the web cryptography API with RSA-OAEP and AES-CBC keys.

GitHub stars
950
Last 30 days
+0
Last commit
2 yr ago
Repository age
10 years
Licence
MIT
Self-hosted
Yes

About Darkwire.io

Darkwire.io is a simple encrypted web chat powered by socket.io and the web cryptography API. The project presents itself as an example of how client-side encryption works and how it can be integrated as a chat service. The server is a Node.js application and the web client is written in JavaScript with React and Redux.

Encryption combines RSA-OAEP key pairs, AES-CBC session keys and HMAC signing keys. When someone sends a message, it is encrypted with a session key and signed, and the session and signing keys are then encrypted with each recipient's public key. Group chats follow the same steps, with encrypted keys included for everyone in the room. Files are base64-encoded in the browser and encrypted the same way as messages.

Rooms live in server memory until all participants have left, and then they are destroyed. Only public keys are kept in server memory, and chat history sits in each participant's browser. It runs from a Yarn setup, docker-compose or a plain Docker image, and needs an https connection because the browser crypto API is limited to localhost and https.

Key features

  • RSA-OAEP, AES-CBC and HMAC keys combined
  • Group chats encrypt keys for every member
  • File transfer with the same encryption as chat
  • Secure WebSockets carry the encrypted traffic
  • Rooms destroyed once everyone leaves
  • Chat history kept only in each browser

Good fit for

  • Short-lived private chat rooms
  • Learning how client-side encryption works
  • Embedding encrypted chat in an application
Tags
chat
end-to-end-encryption
privacy
socket-io
react
nodejs
web-app

Darkwire.io: questions and answers

What is Darkwire.io used for?
Darkwire.io is a browser-based chat with end-to-end encryption, using socket.io and the web cryptography API with RSA-OAEP and AES-CBC keys. It is a good fit for short-lived private chat rooms, learning how client-side encryption works and embedding encrypted chat in an application.
Is Darkwire.io open source?
Yes. Darkwire.io is open source under the MIT licence. Its source code is on GitHub at darkwire/darkwire.io and is written mainly in JavaScript.
Is Darkwire.io free?
Yes. Darkwire.io is open source, so the software itself is free to use.
Can I self-host Darkwire.io?
Yes. Darkwire.io can be self-hosted on your own server or infrastructure.
What are some alternatives to Darkwire.io?
Similar open-source tools in the Team Chat category include Fiora, Haven and Chitchatter. SaaS products in the same category include Signal, Talks and Beeper.
Is Darkwire.io actively maintained?
The most recent commit to Darkwire.io was on 14 January 2024. The project has 950 stars on GitHub.

Open-source alternatives to Darkwire.io

See all

SaaS alternatives to Darkwire.io

See all