HLS 视频加密技术动态加密与静态加密

Dynamic Encryption vs. Static Encryption with Azure Media Services

OCT 05
name="f20b8e7654" width="90px" height="1000px" frameborder="0" allowtransparency="true" allowfullscreen="true" scrolling="no" title="fb:like Facebook Social Plugin" src="http://www.facebook.com/plugins/like.php?app_id=188707654478&channel=http%3A%2F%2Fstatic.ak.facebook.com%2Fconnect%2Fxd_arbiter%2F4B2NplaqNF3.js%3Fversion%3D41%23cb%3Df317a02834%26domain%3Dmingfeiy.com%26origin%3Dhttp%253A%252F%252Fmingfeiy.com%252Ff11f599b68%26relation%3Dparent.parent&container_width=90&href=http%3A%2F%2Fmingfeiy.com%2Fdynamic-encryption-vs-static-encryption-azure-media-services&layout=button_count&locale=en_US&sdk=joey&send=false&show_faces=false&width=90" style="margin: 0px; padding: 0px; border-style: none; border-width: initial; font-family: inherit;font-size:undefined; font-style: inherit; font-variant: inherit; font-weight: inherit; font-stretch: inherit; line-height: 0; vertical-align: top; position: absolute; visibility: visible; width: 0px; height: 0px;">

In Azure Media Services, there are two ways to encrypt your content regardless you are applying common encryption (PlayReady) or envelope encryption (AES) onto your content: dynamic encryption or static encryption. This blog will explain to you the difference and when to use which.

Dynamic Encryption:

This is what we always recommend. Once you encode your file into multi-bitrate Mp4, you could configure the file to be encrypted by defining Content Key, Content Key authorization policy and asset delivery policy. The file is stored in clear in the storage, of course, you could put storage encryption on the container, which is optional. After configuration, our streaming server will apply sample level encryption on your media file on the fly. For example, if you configure AES dynamic encryption for HLS streaming protocol, our streaming server will encrypt your file on the fly with AES envelope encryption and deliver through HLS. Below is a diagram to show you how dynamic encryption works in Azure Media Services:

Architecture - Dynamic Encryption

Architecture – Dynamic Encryption

 

The benefits of using dynamic encryption are:

  • • Save on the storage cost:
  • If you need to apply different encryption onto different streaming protocol ( such as AES for HLS, and PlayReady for Smooth Streaming), you only need to save your media file once, and encrypt it differently on the fly.
  • • Lower cost if you want to change the content key
  • If you pre-encrypt the file and want to change the content key, you need to re-encrypt your media file, which could be time-consuming and costly. With dynamic encryption, you could change your key anytime, and the streaming server will pick up the new key and encrypt it. Moreover, if you want to change your content into clear format one day, you just need to remove the encryption configuration and the file will be served in clear.

Here are some documentations if you want to check more about using PlayReady/AES dynamic encryption:

Static Encryption:

This feature allows you to encrypt your media file with either AES 128 key or PlayReady license statically, and the encrypted file will be stored in the storage. Our streaming server will deliver the encrypted bits when your player requests. Here, if you want to use static encryption with Azure Media Services Encryptor, the input file format has to be Smooth Streaming.

There are also advantages and disadvantages to use static encryption:

As a summary, we see it as a trend to apply encryption on the fly. However, different business has different circumstances. It is always good to evaluate based on your own need.

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值