Hello,
I am trying to create my own torrent tracker but dont know how to generate info_hash
that is used xbtt
to track torrents.
Is this possible with php?
I am using this function to bencode and decode http://paste.lisp.org/display/17178
Is this the correct hash?
$nn = file_get_contents('my.torrent');
$file = bdecode($nn);
$hash = sha1( bencode($file[info]) );
Thank You.