End-to-end encryption solved the transport problem for chat years ago. What it did not solve is retention. An end-to-end encrypted message still sits on two phones, in a cloud backup and, sooner or later, in an export someone made for a perfectly good reason. Kriptano secure chat aims at a narrower target – a room that exists for one conversation, encrypts everything in the browser and is deleted when the time is up. This post walks through the moving parts: where the key lives, why entry uses number matching, how the room lifecycle works and how to open rooms from your own code.
The key lives in the URL fragment
When the host opens a room, the browser generates a random 256-bit key and appends it to the room link after the #. Browsers do not include the fragment in HTTP requests, so the server never receives the key. Messages, participant names and files are encrypted with AES-256-GCM in each participant's browser, and the server relays and stores only ciphertext until the room ends.
The general pattern looks like this in plain Web Crypto:
const b64url = (bytes) => btoa(String.fromCharCode(...bytes)) .replace(/\+/g, "-") .replace(/\//g, "_") .replace(/=+$/, ""); // Host: a random 256-bit room key that only ever travels in the fragment const rawKey = crypto.getRandomValues(new Uint8Array(32)); const roomLink = "https://chat.example/room/ROOM_ID#" + b64url(rawKey); // Every participant: import the key once and seal each message locally const key = await crypto.subtle.importKey("raw", rawKey, "AES-GCM", false, ["encrypt", "decrypt"]); async function sealMessage(text) { const iv = crypto.getRandomValues(new Uint8Array(12)); // fresh 96-bit IV for every message const sealed = await crypto.subtle.encrypt( { name: "AES-GCM", iv }, key, new TextEncoder().encode(text) ); return { iv: b64url(iv), ciphertext: b64url(new Uint8Array(sealed)) }; // all the server stores } This illustrates the pattern, it is not Kriptano's source code. On the guest's side the key comes from location.hash, which the page can read but the browser never sends. GCM also authenticates every message, so a tampered ciphertext fails to decrypt instead of turning into garbled text.
A link is not enough – number matching
Links leak. They get forwarded, synced to a second device or pasted into the wrong chat. So entering a room takes a second factor that travels through a different channel. The host sees a two-digit number, and the guest is shown four numbers and has to pick the right one – the same idea Microsoft Authenticator has required for push sign-in approvals since May 2023.
| Event | What happens |
|---|---|
| Right number | the guest joins, and a one-to-one room locks |
| Wrong number | further entries stop and the host is alerted |
| Host allows another try | entries resume |
| Third wrong number | the room is destroyed |
| Every seat taken | the room locks |
With four choices a blind guess succeeds one time in four, so treat the number as a tripwire rather than a password. Someone holding an intercepted link gets one attempt before the host is warned, and a lucky guess in a two-seat room takes the last seat – your real guest finds the room locked, which is your cue to destroy it and open a new one. Before you share anything sensitive, make sure the person in the room is the one you invited.
Lifecycle – timers, locks and Destroy
- The lifetime runs from 15 minutes to 7 days, capped by the plan, and every participant sees the countdown.
- An optional idle timer destroys the room after 10, 30, 60 or 120 minutes without messages.
- Any participant can destroy the room for everyone at once.
- When a room closes, encrypted messages, participant tokens and files are deleted from the server, and browsers clear the conversation from the screen.
- A record that the room existed, without content, is kept for 30 days.
Files follow the same model
On paid plans participants can share files inside the room. Files are encrypted in chunks in the browser and disappear with the room – up to 50 MB on Start, 500 MB on Pro and 10 GB on Pro Plus.
Where an ephemeral room sits
TLS protects the connection and encryption at rest protects the disk, but in both cases the provider holds the keys. End-to-end messengers keep the provider blind, yet they keep the history. An ephemeral room adds the missing property – once the conversation is over, there is nothing left to leak or forward.
Opening rooms from your own code
On Pro and Pro Plus the REST API can open a room for you, which helps when a helpdesk or CRM needs a confidential channel with a customer. Authenticate with a Bearer key created under My account → API:
curl -X POST https://kriptano.com/api/v1/rooms \ -H "Authorization: Bearer $KRIPTANO_API_KEY" \ -H "Content-Type: application/json" \ -d '{"minutes": 30, "members": 2, "idle": 10}' minutes is one of 15, 30, 60, 120, 360, 720, 1440, 4320 or 10080, up to the plan limit. members goes up to 10 on Pro and 50 on Pro Plus. idle destroys the room after 10, 30, 60 or 120 minutes without messages, and 0 switches it off. The response carries three values that should travel separately:
-
url– the link for the guest -
host_url– a single-use entry link for the host, never share it -
code– the two-digit number the guest has to pick
In a Node.js helpdesk integration it could look like this:
const res = await fetch("https://kriptano.com/api/v1/rooms", { method: "POST", headers: { Authorization: "Bearer " + process.env.KRIPTANO_API_KEY, "Content-Type": "application/json", }, body: JSON.stringify({ minutes: 30, members: 2, idle: 10 }), }); if (!res.ok) throw new Error("Kriptano API returned " + res.status); const room = await res.json(); // room.url -> reply to the ticket or email it to the customer // room.code -> read it out on the phone, never in the same message as the link // room.host_url -> open it yourself; it works once, so keep it private GET /api/v1/rooms/:id returns the state of a room and DELETE /api/v1/rooms/:id destroys it, for example when the ticket is closed. The API allows 60 requests per minute on Pro and 300 on Pro Plus.
What it does not solve
- Screenshots and photos of the screen.
- Malware on a participant's device, which sees messages before they are encrypted.
- The number reaching the wrong person.
- Record-keeping duties. Regulators have fined financial firms heavily over business conversations on unapproved messaging apps, and an ephemeral room is not a way around those rules.
Try it
A free account opens rooms for two people for up to 30 minutes, and guests need nothing but a browser. Open one on the Kriptano secure chat page, see how the rest of the service handles keys on the security page and compare limits on the pricing page.
Povezane analize:





