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
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 allFiora
Team Chat
An interesting open source chat application. Developed with node.js, mongoDB, socket.io an
MITvs Discord★ 7.2k
Haven
Team Chat
Self-hosted private chat: no cloud, no telemetry, no Big Tech. Discord alternative that ru
AGPL-3.0vs Discord★ 1k
Chitchatter
Team Chat
Secure peer-to-peer chat that is serverless, decentralized, and ephemeral
GPL-2.0vs Whereby★ 2.3kChat.io
Team Chat
A Real Time Chat Application built using Node.js, Express, Mongoose, Socket.io, Passport,
MIT★ 1.4k
Cryptocat
Team Chat
Secure chat software for your computer.
GPL-3.0★ 1.1kghChat
Team Chat
:octocat: 📱A chat application for GitHub. React + PWA + Node(koa2) + Typescripts + Mysql
MITvs Slack★ 927
SaaS alternatives to Darkwire.io
See all
Signal
Team Chat
Privacy-focused messenger with end-to-end encrypted chats and calls
SaaS
Talks
Team Chat
Private messaging app with end-to-end encrypted chats, anonymous mode and self-destructing messages
SaaS
Beeper
Team Chat
Chat aggregator that brings multiple messaging networks into one inbox
SaaS
Google Chat
Team Chat
Messaging and spaces inside Google Workspace with Meet and Docs integration
SaaS
JANDI
Team Chat
Korean team messenger and collaboration tool with file sharing and task management
SaaS
Kik
Team Chat
Mobile messaging app with private chats, public groups and communities
SaaS