AES Encryption

Encrypt your HLS streams with AES-128 for industry-standard video protection.

Overview

What It Is

AES-128 encryption scrambles your HLS video segments so they can't be played without the decryption key. Unlike DRM, which locks playback to devices, AES encrypts the stream itself—making it safe to deliver over untrusted networks and harder for casual pirates to download from CDN caches. It's the standard for mainstream streaming and works on every device that plays HLS.

Coming Soon
Process

How It Works

  1. Enable AES encryption

    Specify AES-128 encryption in your transcode configuration.

  2. Generate an encryption key

    Use a Qencode-managed key or provide your own.

  3. Encrypt all segments

    Every .ts segment in your HLS stream gets encrypted with the AES key.

  4. Distribute the key securely

    Players fetch the key from a separate, protected endpoint.

  5. Segments remain encrypted

    Even if intercepted, video files are unplayable without the key.

Overview

Why AES Encryption

Reduce costs

Lower bandwidth and storage expenses without compromising quality.

Save time

Automate complex processing that would take hours manually.

Scale effortlessly

Handle thousands of videos with the same API call.

Integrate in minutes

Simple REST API with comprehensive SDKs and documentation.

Use Cases

Who Uses AES Encryption

VOD Platforms

A streaming platform encrypts all library content with AES-128 so cached files on CDNs can't be downloaded and played standalone. Reduce bandwidth theft by 70% and protect against casual piracy while maintaining compatibility with all standard HLS players.

EdTech

An online university encrypts lectures with AES-128 so students can watch securely even over open WiFi networks. Meet compliance requirements for educational data protection and reassure students that enrollment videos are secure.

Enterprise

A company encrypts internal training and compliance videos with AES-128 so they can't be extracted from corporate networks. Prevent insider threats and satisfy security audits requiring encryption in transit for sensitive content.

Tutorial

How to Use AES Encryption

Watch a quick walkthrough showing how to configure and use AES Encryption through the Qencode dashboard and API.

Tutorial Video Coming Soon
For Developers

Technical Reference

API MethodPOST /v1/start_encode2 after creating a task with /v1/create_task.
Key Parametersoutput: "advanced_hls", encryption, stream[].
Encryption Objectencryption.key, encryption.iv, encryption.key_url.
Encryption StandardAES-128 encryption for HLS output.
Key ManagementCustomer-provided key. Generate a 16-byte key file, host it on your server, and provide its URL in key_url.
Key / IV Formatkey is the hex value of the generated key. iv is a generated initialization vector in hex.
Supported Output Formatadvanced_hls.

Request Example

Enable AES-128 encryption on an advanced_hls output with Qencode-managed keys.

{
  "query": {
    "source": "https://your-storage.com/video.mp4",
    "encoder_version": "2",
    "format": [
      {
        "output": "advanced_hls",
        "separate_audio": 1,
        "stream": [
          {
            "video_codec": "libx264",
            "resolution": 2160,
            "optimize_bitrate": 1,
            "framerate": "30",
            "keyframe": "90"
          },
          {
            "video_codec": "libx264",
            "resolution": 1440,
            "optimize_bitrate": 1,
            "framerate": "30",
            "keyframe": "90"
          }
        ],
        "segment_duration": "6",
        "encryption": {
          "key": "your_encryption_key",
          "iv": "your_encryption_key_iv",
          "key_url": "https://your-server.com/aes-128/encryption.key"
        }
      }
    ]
  }
}

Copy this payload and use it with your API key to test AES Encryption on your own videos.

View AES Encryption Tutorial
Pricing

What It Costs

Including with HLS Transcoding

AES-128 encryption is available for HLS outputs. Pricing follows standard HLS transcoding usage, with no separate encryption feature fee.

We love creating powerful solutions that are aligned with the needs of your business.

Please send us a message if you have a question or Schedule a call for a demo to discuss your integration.

Let's talk

First Name
Last Name
Company
Email
Your Message

Contact us with any questions. We'd love to help.

Los Angeles, CA - (HQ)

San Francisco, CA

New York, NY