Skip to content

z7pz/HLS-encryption-prototype

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

HLS encryption prototype (AES-128 based)

Try to setup

BACKEND

First of all you need to create an encryption key enc.key by using the following command:

openssl rand 16 > enc.key

then create keyinfo file and it should be in this format:

link_of_enc.key
key_file_path
IV (optional)

for example

http://127.0.0.1:8080/enc.key
enc.key

and add your video in ./database

run the following command to create the encrypted video

ffmpeg -y
  -i './database/{{ your video name }}'
  -hls_time 200
  -hls_key_info_file enc.keyinfo
  -hls_playlist_type vod
  -hls_segment_filename "./d/chunk-%d.ts"
  ./d/test.m3u8

FRONTEND

then you can go to the frontend file and run the html file

or you can run it through running Live Server

image

About

Basic prototype implementation for HLS encryption process for protection videos. (AES-128 based)

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published