Recliner
IPTV player for your TV Sign in

How Recliner keeps your library private

Recliner has two secrets. Your account sign-in proves who you are. Your library passphrase is the only key to your playlists, favorites and history, and it never leaves your devices.

What happens to your passphrase

You type it on a TV, or in this browser on the playlists page. Right there, it is stretched into a key with Argon2id, deliberately slow and memory-hungry, so guessing it takes real time per guess. That key is never stored and never sent. It unlocks a random library key, and it is that library key which seals everything.

What we store

Each playlist, favorite and history entry is sealed separately with XChaCha20-Poly1305 before it leaves the device, padded to a fixed-size bucket so its length says little, and filed under an id derived from your key, not from its name, your email or your provider. We also store your library key, locked under your passphrase. We cannot unlock it.

Each paired TV also leaves one sealed library index, so this site can search your playlists on every TV at once: the names, groups and years of its channels, films and shows, and nothing else (no address, login or stream). It is gzipped, sealed under a key of its own derived from your library key, and padded to a whole MiB, so its size to the nearest MiB is the one thing we see. Settings › Privacy on a TV turns it off and deletes our copy of that TV's index.

What we can see

Your email address, or only your username if you made the account without one; for each TV, the name you gave it, what kind of TV it is and when it last synced; how many sealed items your account holds and roughly how big they are; when your TVs sync; and the network addresses they connect from. We cannot see which provider, username or password you use, which channels you have, or what you watched.

Watching

Your TV plays streams straight from your provider. They do not pass through us, so there is nothing of what you watch for us to see.

Adding a TV

The code on a new TV's screen carries a one-time key after the # in its link, and a browser never sends that part to any server. Your phone seals the library key to it, and only that TV can open the result.

If you forget the passphrase

Your library is gone. There is no reset and no recovery, by design: a reset would mean we hold a copy of the key, and then we could read your library.

The one thing you still have to trust

All of this holds against us and against anyone who takes our server. It does not hold against a changed app. A web page is code this server delivers each time, so a server that had been tampered with could swap the page for one that keeps your passphrase. That is why the pages that ask for it show the SHA-256 of the exact code they ran. That code is served unminified and builds the same way every time, so anyone can read it, keep its fingerprint, and see if it ever changes. Your TV app does not change without an update.

Check it yourself

You do not have to take this page's word for it. Here is the format, a sample you can open, and a way to watch.

The format. Your passphrase is stretched with Argon2id v1.3, using 64 MiB of memory and 2 passes, with a random 16-byte salt for each account. The result opens your library key, which is sealed with XSalsa20-Poly1305. Each playlist, favorite and history entry is sealed with XChaCha20-Poly1305 under a key of its own, made from the library key with HMAC-SHA256, and padded to a multiple of 256 bytes.

Open a sample. vault-vector.json holds one sealed library key and one sealed playlist login, copied from the test vectors our apps must open. Its passphrase is a made-up demo value and the login inside is fake. Save this program as open.js in the same folder:

const s = require('libsodium-wrappers-sumo'), v = require('./vault-vector.json');
(async () => {
  await s.ready;
  const hex = s.from_hex, w = hex(v.wrap.wrapped);
  const master = s.crypto_pwhash(32, v.wrap.passphrase, hex(v.wrap.salt), v.kdf.opslimit, v.kdf.memlimit, s.crypto_pwhash_ALG_ARGON2ID13);
  const libraryKey = s.crypto_secretbox_open_easy(w.slice(24), w.slice(0, 24), master);
  const key = s.crypto_auth_hmacsha256(v.record.subKeyInfo, libraryKey);
  const padded = s.crypto_aead_xchacha20poly1305_ietf_decrypt(null, hex(v.record.ciphertext), null, hex(v.record.nonce), key);
  const n = Buffer.from(padded).readUInt32BE(0);
  console.log(s.to_string(padded.slice(4, 4 + n)));
  console.log(s.to_hex(s.crypto_auth_hmacsha256(v.record.blindInfo, libraryKey)) === v.record.blindedId);
})();

In that folder, install the stock library with npm install libsodium-wrappers-sumo, then fetch the sample and run it:

curl -O https://recliner.tv/vault-vector.json
node open.js

It prints the login it opened, then true: the address our server files that entry under was made from your key, not from the entry.

{"host":"http://provider.example:25461","user":"test-user","pass":"test-pass"}
true

Watch it. Open the playlists page, open your browser's developer tools, choose the Network tab, and add a playlist. Each request that saves it goes to /v1/rows/ followed by a 64-character id, and its body holds blob, which is sealed bytes in base64, and a version number. Search those requests for your server address or your username. Neither is there.

Anything on this page that is not true is a bug. Tell us. The promises in plain words are on Privacy.