I've been lead to believe that if you decode the info_hash in a tracker GET request, you are left with the SHA1 hash of the file that is being downloaded. That makes sense to me but I'm not getting results here. Does anybody have any experience with this?
info_hash=%ab%10o%22%a8%b0%e2%a4p%27%e2U%d3j%d1F%a0%f7%05%27
This is what I'm currently working with. Clearly this is URL encoded yet URL decode gives me absolutely nothing to work with. Where am I going wrong here?
Any help is appreciated.
unescape('%ab%10o%22%a8%b0%e2%a4p%27%e2U%d3j%d1F%a0%f7%05%27').split('').map((e)=>{var c = e.charCodeAt(0); return (c < 10 ? '0' : '') + c.toString(16).toUpperCase()}).join('')
seems to produce a valid hex-encoded SHA1 hash. Sound like you might have an issue with your code, in which case you probably want Stack Overflow.