HLS-Stream-Creator icon indicating copy to clipboard operation
HLS-Stream-Creator copied to clipboard

How come the encrypted files are still playable?

Open monir-zaman opened this issue 5 years ago • 2 comments
trafficstars

when I encrypt the streams with -e flag, the process completes without any error, however, the files still can be played with vlc.

monir-zaman avatar Feb 06 '20 05:02 monir-zaman

That’s because it can access the key to decrypt the segments you will probably want to put the key behind some kind of proxy.

samueleastdev avatar Feb 06 '20 06:02 samueleastdev

Yes.

A common approach is to encrypt the stream and then put the key itself on a server that requires authentication of some form - so segments can be fetched without auth overhead, but access to the key can still be controlled.

In the meantime if you want to confirm playback fails without the key, simply renaming the keyfile should be sufficient.

bentasker avatar Feb 06 '20 08:02 bentasker