The video encryption feature allows you to perform in-depth security processing on video content and prevent video data from being illegally acquired and transmitted. This feature is widely used to prevent video leaks and hotlinking in scenarios that require high security, such as online education and finance. ApsaraVideo Media Processing (MPS) supports two encryption methods: Alibaba Cloud proprietary cryptography and HTTP-Live-Streaming (HLS) encryption. We recommend that you use Alibaba Cloud proprietary cryptography in MPS. This topic provides a comparison between the two encryption methods. This way, you can select an appropriate encryption method based on your business requirements.
Scenarios
You can encrypt videos that require copyright protection, such as online education videos and professionally generated content (PGC), to prevent unauthorized downloads and spreads.
Method comparison
The following table describes the two video encryption methods that are supported by MPS.
Encryption method | Alibaba Cloud proprietary cryptography | HLS encryption |
Description | Videos are encrypted based on proprietary AES128 encryption keys. | Videos are encrypted based on the HLS protocol. |
Security level | High. | Low. You must keep your keys confidential. For example, you can configure limits on logon cookies and referers. |
Prerequisites |
| Encryption keys are prepared by yourself. |
Enabling method | Automatically enabled. To use Alibaba Cloud proprietary cryptography, you need to create a media workflow in the MPS console. Then, MPS transcodes and encrypts each input media file for playback. | Manually enabled. |
Procedure |
For more information, see Alibaba Cloud proprietary cryptography |
|
Supported output format | M3U8 | M3U8 |
Limits on playback and delivery |
| You can use a player that supports HLS encryption for playback. |