2
我想創建我自己的洪流跟蹤器,但不知道如何生成info_hash
使用xbtt
來跟蹤種子。生成xbtt的torrent的info_hash
這可能與PHP?
我使用這個功能來bencode和解碼http://paste.lisp.org/display/17178
這是正確的哈希?
$nn = file_get_contents('my.torrent');
$file = bdecode($nn);
$hash = sha1(bencode($file[info]));
謝謝。
請檢查我編輯過的帖子 – Shishant 2010-04-08 15:19:59
@Shishant:請參閱我更新的答案。 – 2010-04-08 15:34:10
是的,終於明白了。 – Shishant 2010-04-13 19:21:50