Encrypted chat app using firebase and webcrypto api
Branch: master
Clone or download
Latest commit 42362eb Apr 14, 2018
Type Name Latest commit message Commit time
Failed to load latest commit information.
images init Oct 29, 2016
scripts fixes Apr 14, 2018
styles added footer Oct 31, 2016
.gitignore init Oct 29, 2016
LICENSE bower & license Oct 31, 2016
README.md Copied About to README Oct 31, 2016
about.html init Oct 29, 2016
bower.json bower & license Oct 31, 2016
firebase.json init Oct 29, 2016
index.html fixes Apr 14, 2018
manifest.json init Oct 29, 2016
manifest.webapp init Oct 29, 2016



A simple chat application demo demonstrating end-to-end encryption where the content of messages is completely hidden from the sever.


This is a weekend project that is meant to test the WebCryptoAPI and Firebase. Messages are end-to-end encrypted between the users. Furthermore, messages are destroyed on the server as soon as they reach their destination. The app is based on the Firebase Friendly Chat starter project.

Conversations are organized into chat rooms. Each room is identified by a unique name in the URL that can be shared with another person to start a conversation. Each room supports (for now) 2 users:

  • Host: Creates the room, with a unique id.
  • Guest: Joins a room after receiving a room id (or stumbling onto one).


I have picked Firebase as a backend for this app because it offered a simple integration for user profiles and a real-time database to exchange messages. I used to be a Parse fanboy for a long time, and Firebase seemed lacking before, but I'm starting to see its appeal. However, the plan is to move away from centralized solutions to a p22p one (WebRTC maybe, if I ever manage to get it to work).

Why login with Google?

I needed a way to uniquely identify users, Google is the default integration with Firebase but I will add other providers like Github, Twitter and Facebook. The chat can function purely on usernames but that would be done later.

Can I use this?

Use it for fun, experiments and break it! This is NOT meant for any serious use! This is just an experiment.

If you find a bug, open an issue or send an email : raed.chammam@gmail.com.