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.
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