How it works: How encryption works

How it works

How encryption works

Everything you sync is sealed on your computer before it leaves. Cesar's servers store it and cannot read it. This page explains the idea, without the technical detail.

Overview

Cesar keeps your conversations so they can follow you between computers and be shared with your team. It does this without being able to read them: everything is sealed, which means closed with a key so that only the matching key opens it. Three things make that possible:

  • a pair of keys for each person;
  • a passphrase that only you know;
  • a key for each workspace.

A pair of keys

Each person has two keys that belong together.

  • The public key seals. It is not a secret, and anyone can have a copy.
  • The private key opens what the public key sealed. It never leaves its owner.

To send Bob something only he can read, Alice seals it with his public key. After that, the only thing that opens it is Bob's private key.

Alice's computerCesar's serverBob's computerA message for Bobreadable, on her computer onlySealed for Bobonly he can open itIt keeps the boxand has no key that opens it.Kept, still sealednothing here opens itThe message, readableon his computer onlySealed for Bobarrived as it was sent1sealed with Bob's public key2sent3fetched4opened with his private key
A message from Alice to Bob. The dotted boxes are sealed: what is inside cannot be read there.
  1. Alice seals the message with Bob's public key. From that moment she cannot open it either.
  2. The sealed message is sent. Anyone can carry it or store it. Nobody on the way can read it.
  3. Bob fetches it. It arrives exactly as it left.
  4. Bob opens it with his private key, which never left his computer.

Your passphrase

Your two keys are made on your computer the first time you sign in. Your private key is then sealed with your passphrase and stored on the server, so that your other computers can fetch it.

The passphrase itself is never sent anywhere. That is why it cannot be reset: nobody else has it, Cesar included.

A key for each workspace

A workspace has a key of its own, and everything put in the workspace is sealed with it. Being a member means holding your own copy of that key, sealed with your public key.

Alice's computerCesar's serverBob's computerThe conversationsunder the workspace keyAlice's copy of the keyonly she can open itBob's copy of the keyonly he can open itAlice opens her copywith her private key, then readsBob opens his copywith his private key, then reads
One workspace, two members. The server stores the conversations and a copy of the key for each member, all sealed.

The server stores every copy and can open none of them.

Letting someone in

Adding someone to a workspace means making a copy of its key for them. Only someone who already holds the key can do that, so it happens on a member's computer and never on the server.

  • If the person already uses Cesar, their copy is made when you invite them. They can read the workspace as soon as they join.
  • If they are new, they install Cesar and join first. Your computer makes their copy the next time it syncs.

What Cesar's servers can see

They can seeThey cannot see
Your email address and GitHub nameWhat was said in a conversation
Who is in each workspace, and their roleA conversation's title, or the folder it came from
How big each conversation is, and when it changedWhat your team's brain holds

Read more