Skip to main content
Livepeer Studio supports encrypted video assets: you encrypt the file with AES-CBC, encrypt the key with Livepeer’s public key, then upload. Playback can be gated with access control.
Encryption uses AES-CBC (256-bit). Compatible with Web Crypto and protocols like Lit.

Flow

  1. Generate a 256-bit AES key and encrypt the video (random IV, PKCS#7 padding).
  2. Fetch Livepeer’s public key from GET https://livepeer.studio/api/access-control/public-key (with Bearer API key).
  3. Encrypt the symmetric key with that public key (SPKI format in browsers).
  4. Create an asset with the encrypted key (base64) and upload the encrypted file via the returned TUS URL.
Playback is protected by your playback policy (webhook or JWT). Only authorized viewers get access. For full code and Lit integration see the Livepeer Studio docs.
Last modified on February 18, 2026