{"action":"opened","issue":{"url":"https://api.github.com/repos/prabaprakash/Hotstar-Downloader/issues/3","repository_url":"https://api.github.com/repos/prabaprakash/Hotstar-Downloader","labels_url":"https://api.github.com/repos/prabaprakash/Hotstar-Downloader/issues/3/labels{/name}","comments_url":"https://api.github.com/repos/prabaprakash/Hotstar-Downloader/issues/3/comments","events_url":"https://api.github.com/repos/prabaprakash/Hotstar-Downloader/issues/3/events","html_url":"https://github.com/prabaprakash/Hotstar-Downloader/issues/3","id":365785702,"node_id":"MDU6SXNzdWUzNjU3ODU3MDI=","number":3,"title":"Find how hotstar generate HMAC Token","user":{"login":"prabaprakash","id":3902309,"node_id":"MDQ6VXNlcjM5MDIzMDk=","avatar_url":"https://avatars1.githubusercontent.com/u/3902309?v=4","gravatar_id":"","url":"https://api.github.com/users/prabaprakash","html_url":"https://github.com/prabaprakash","followers_url":"https://api.github.com/users/prabaprakash/followers","following_url":"https://api.github.com/users/prabaprakash/following{/other_user}","gists_url":"https://api.github.com/users/prabaprakash/gists{/gist_id}","starred_url":"https://api.github.com/users/prabaprakash/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/prabaprakash/subscriptions","organizations_url":"https://api.github.com/users/prabaprakash/orgs","repos_url":"https://api.github.com/users/prabaprakash/repos","events_url":"https://api.github.com/users/prabaprakash/events{/privacy}","received_events_url":"https://api.github.com/users/prabaprakash/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-10-02T08:12:49Z","updated_at":"2018-10-02T08:12:49Z","closed_at":null,"author_association":"OWNER","body":"While researching I found they HMAC tokens form web app itself, before they used to call \"https://www.hotstar.com/get_cdn_token.php\"\r\n{\r\n                key: \"generateToken\",\r\n                value: function() {\r\n                  var t =\r\n                      this.getIpField() +\r\n                      this.getStartTimeField() +\r\n                      this.getExprField() +\r\n                      this.getAclField() +\r\n                      this.getSessionIdField() +\r\n                      this.getDataField(),\r\n                    e = t + \"\" + this.getUrlField() + this.getSaltField(),\r\n                    n = RegExp(this.delimiter + \"$\");\r\n                  return (\r\n                    t +\r\n                    \"hmac=\" +\r\n                    u.default.HmacSHA256(\r\n                      e.replace(n, \"\"),\r\n                      (function(t) {\r\n                        var e = \"\",\r\n                          n = 0;\r\n                        do {\r\n                          var r = t[n] + t[n + 1],\r\n                            o = parseInt(\r\n                              (r + \"\").replace(/[^a-f0-9]/gi, \"\"),\r\n                              16\r\n                            );\r\n                          (e += String.fromCharCode(o)), (n += 2);\r\n                        } while (t.length > n);\r\n                        return e;\r\n                      })(this.key)\r\n                    )\r\n                  );"}}
{"actor":{"display_login":"prabaprakash"}}