Video encryption by Crypto.js

Home / Uncategorized / Video encryption by Crypto.js

Question:
How to encrypt and decrypt video and audio streaming url by crypto.js? This line of code :var encrypted = CryptoJS.AES.encrypt("#string#", "#theKey#");

require data as string.

So what can I do? I just have a video URL.


Answer:
It’s not as simple as put the url in a variable, you will have to listen to a stream, & when you receive data you will have to download it and encrypt it after.

Just check at ffmpeg node_module if you have specific video stream url (m3u format) or just request if you have a file video url
Read more

Leave a Reply

Your email address will not be published. Required fields are marked *