anyaudio / anyaudio-server

:musical_note: Simple server to search youtube and give direct audio download and stream links
91 stars 19 forks source link

Encrypt /d/ download urls #26

Closed aviaryan closed 8 years ago

aviaryan commented 8 years ago

https://github.com/aviaryan/youtube-mp3-server/issues/17#issuecomment-238521123

The real need is to block users to send any link they want into the /d/ endpoint. And we can do it using little encryption. So I think this issue can be closed. I will open a new issue for encrypting /download urls.

We can use a simple PRIVATE_KEY on the server to encrypt the urls and then further decrypt them back.

aviaryan commented 8 years ago

Fixed by https://github.com/aviaryan/youtube-mp3-server/commit/0129145177bf696c607d3caf436544982f32092b