I just want to make the video source encrypted and stay away from user want download the video. So how can i encrypt the video source?
Can we make the encrypt url of the video with html & css? If not, how to do it in another language?
I just want to make the video source encrypted and stay away from user want download the video. So how can i encrypt the video source?
Can we make the encrypt url of the video with html & css? If not, how to do it in another language?
// Define the string
var href = 'https://www.bigbuckbunny.org/';
// Encode the String
var encodedString = btoa(href);
console.log('encodedString : ', encodedString);
// Decode the String
var decodedString = atob(encodedString);
console.log('decodedString : ', decodedString);
you can use native base64 for decoding and encoding strings
atob()
btoa()
Encrypt
btoa("https://www.bigbuckbunny.org/");
If you "encrypt" the URL while your user's browser need the URL of the video, this means that your user's browser can "decrypt" it. So the user can also do it.
So you can't but you can make it harder to download.