Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Decode Torrent Hash of Torrent tracker scrape?

Tags:

I am using BEncoded PHP Library to decode the bencoded response from a Bittorrent tracker.

The response of Tracker is:

d5:filesd20:¼€™rÄ2ÞÊþVA  .]á^¦d8:completei285e10:downloadedi22911e10:incompletei9eeee

after decoding it using the below code:

require 'bencoded.php';

$be = new BEncoded;
//Response saved in scrape.txt
$data =file_get_contents('scrape.txt');
print_r($be->Decode($data));

the output is:

Array ( [files] => Array ( [¼€™rÄ2ÞÊþVA  .]á^¦] => Array ( [complete] => 285 [downloaded] => 22911 [incomplete] => 9 [isDct] => 1 ) [isDct] => 1 ) [isDct] => 1 )

My Problem my problem in the above output is how to decode those mysterious letters in output.