title: How to make Expiring/Signed video embed urls
body: <p>I'm new and learning web development and all. I only know how to embed my videos in the website and the source can be easily obtained by any noobs and they can embed it too. but in many website the video src is encoded with a redirector link, for example: <a href="https://redirector.googlevideo.com/videoplayback?requiressl=yes&amp;id=0c5d32687bb8e7fd&amp;itag=18&amp;source=webdrive&amp;ttl=transient&amp;app=explorer&amp;ip=2604:a880:0:1010::dc7:d001&amp;ipbits=32&amp;expire=1481329545&amp;sparams=requiressl%2Cid%2Citag%2Csource%2Cttl%2Cip%2Cipbits%2Cexpire&amp;signature=8094D8DEF3C98784DC5561980B5725379B61A804.4C63CCB219699C4A2C02FB2606425E50243F8D36&amp;key=ck2&amp;mm=31&amp;mn=sn-ab5l6ne6&amp;ms=au&amp;mt=1481314943&amp;mv=m&amp;nh=IgpwcjA0LmxnYTA3KgkxMjcuMC4wLjE&amp;pl=48" rel="nofollow noreferrer">https://redirector.googlevideo.com/videoplayback?requiressl=yes&amp;id=0c5d32687bb8e7fd&amp;itag=18&amp;source=webdrive&amp;ttl=transient&amp;app=explorer&amp;ip=2604:a880:0:1010::dc7:d001&amp;ipbits=32&amp;expire=1481329545&amp;sparams=requiressl%2Cid%2Citag%2Csource%2Cttl%2Cip%2Cipbits%2Cexpire&amp;signature=8094D8DEF3C98784DC5561980B5725379B61A804.4C63CCB219699C4A2C02FB2606425E50243F8D36&amp;key=ck2&amp;mm=31&amp;mn=sn-ab5l6ne6&amp;ms=au&amp;mt=1481314943&amp;mv=m&amp;nh=IgpwcjA0LmxnYTA3KgkxMjcuMC4wLjE&amp;pl=48</a></p>
  
  <p>It expires after some time, in this case, a day. I've learnt that this is a signed url.</p>
  
  <p>So, i would like to know how to create a signed url like this. Please dont give any plugin names coz i'm not a paid user or anything i'm using blogger only. i just wanna learn how to code it in javascript.</p>
  
  <p>In short, I want to make lets say, source of my embeded youtube video to be a signed url which expires after an hour and the source should keep changing when the site is refreshed.</p>