What is AES-128 Encryption?

Updated September 2026 · Reviewed by the Flicknexs platform team

Quick answer

AES-128 Encryption (HLS) is a symmetric encryption method that secures HTTP Live Streaming segments using a 128-bit key. It encrypts media files before delivery, requiring the player to fetch and apply the key to decode video. This protects content from simple interception but offers lighter protection than full DRM solutions.

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.

FeatureAES-128DRM
Key DeliveryPlain text or simple tokenSecure license server
Security LevelModerateHigh
Device SupportUniversalDevice-specific modules
CostLowHigher complexity
Best ForGeneral contentPremium 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.

Video on demand software

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.

AES-128 Encryption FAQ

No. AES-128 is suitable for general content, but premium movies require DRM. DRM uses hardware-backed security to prevent key extraction and screen recording, offering stronger protection than AES-128 alone.
The player reads the HLS playlist, which contains a URI pointing to the key file. The player fetches this key over HTTPS and uses it to decrypt the video segments in real time.
Yes, but you must update the playlist to point to the new key file. Players will fetch the new key for subsequent segments. Old segments encrypted with the previous key will not play with the new key.
Yes. AES-128 is a standard part of the HLS specification. All major video players and devices, including iOS, Android, and smart TVs, support AES-128 decryption natively.
The player stops decoding video data and displays an error message. You must provide a fresh key file to resume playback. This mechanism prevents unauthorized access if keys are compromised. It also supports dynamic content rotation. Make sure your backend updates keys before expiration to maintain uninterrupted viewing sessions for subscribers.
AES-128 offers strong protection with lower implementation complexity. It works well for standard definition and high definition content. Full DRM adds overhead and compatibility challenges. Many operators choose AES-128 for faster deployment and broader device support. It balances security needs against technical constraints and cost considerations for mid-tier streaming services.

Standards and references

Further reading

AES-128 Encryption (HLS): How It Works in Streaming