Key takeaways
- Uses a shared 128-bit key for both encryption and decryption.
- Keys are delivered via a separate .key file or URI.
- Provides transport security but is weaker than DRM for premium content.
- Requires the player to fetch the key before playback starts.
How AES-128 Encryption (HLS) works
AES-128 is a symmetric cipher, meaning the same 128-bit key encrypts the media segments and decrypts them on the client side. In an HLS workflow, your encoder splits video into small segments, typically two seconds long. Each segment is encrypted with the AES-128 algorithm. The resulting binary data is unreadable without the key.
The encryption key itself is not embedded in the video. Instead, the HLS playlist references a key URI. When a player requests the stream, it first downloads the playlist. The playlist contains a tag pointing to the location of the key file. The player fetches this key, then uses it to decrypt each video segment as it arrives. This process happens in real time on the user's device.
Because the key is a separate file, you can rotate it periodically. If you change the key, old segments become undecryptable with the new key, forcing players to fetch the updated key. This adds a layer of control over how long a specific key remains valid.
Why AES-128 Encryption (HLS) matters for a streaming business
Basic HTTP streaming sends video data in clear text. Anyone with network access can capture and save the stream. AES-128 prevents this casual interception. It ensures that only clients with the correct key can view the content.
For operators, this protects intellectual property from simple screen recording tools or network sniffers. It is a standard baseline for securing VOD and live streams. However, AES-128 is not a complete solution. The key is often delivered in clear text or via a simple token. A determined attacker can extract the key from the player's memory or intercept the key request.
You should use AES-128 when you need basic protection for general audience content, such as educational videos or live events. It is cost-effective and widely supported across all major players and devices. For premium, high-value content like movies or exclusive sports, you will likely need stronger protection.
AES-128 Encryption (HLS) vs DRM (Digital Rights Management)
AES-128 and DRM both protect video, but they operate at different levels. AES-128 encrypts the media file itself. DRM encrypts the media and adds a secure container for the key, often using hardware-backed security on the device.
DRM systems like Widevine, PlayReady, or FairPlay use asymmetric cryptography. The player requests a license from a server, which validates the user's entitlement before releasing the key. This prevents key extraction because the key never exists in plain text on the device.
| Feature | AES-128 | DRM |
|---|---|---|
| Key Delivery | Plain text or simple token | Secure license server |
| Security Level | Moderate | High |
| Device Support | Universal | Device-specific modules |
| Cost | Low | Higher complexity |
| Best For | General content | Premium content |
Common mistakes with AES-128 Encryption (HLS)
- Using a static key for all content. If one key is compromised, all content encrypted with it is exposed. Rotate keys per title or per session.
- Delivering keys over unsecured HTTP. Always use HTTPS for key delivery to prevent man-in-the-middle attacks.
- Assuming AES-128 stops all piracy. It stops casual capture, but not sophisticated screen recording or key extraction.
- Forgetting to update the key URI in the playlist. If the key file moves, playback breaks for all users.
How Flicknexs handles AES-128 Encryption (HLS)
Flicknexs delivers AES encrypted HLS as part of its standard video delivery. Your content is transcoded and encrypted with 128-bit keys. The platform manages key generation and rotation, ensuring that players fetch the correct key for each stream. This provides a solid baseline of security for your VOD and live channels. You can combine this with signed, expiring playback URLs to further restrict access. For higher security needs, Flicknexs also supports DRM at the delivery layer. Explore the Video on demand software page to see how these security features fit into your streaming setup.
Done reading about AES-128 Encryption?
Flicknexs ships it as part of a white-label streaming platform: web, mobile and TV apps, billing, ads, DRM and playout, on your own domain.