Eme*_*iel 3 hash bittorrent magnet-uri torrent
我想知道是否有人知道BitTorrent客户端中的"哈希"是什么,它显然不是hash
文件的代码,而是一些不同的东西.
我认为这更像是一个文件的磁铁链接,但这是如何连接到文件本身的?
我只是想了解场景背后的构造.
在torrent客户端中文件< - >哈希<--->哈希
Enc*_*mbe 10
将hash
在洪流客户或hash
你的发现magnet-URI
是原始的SHA1哈希bencoded
info-dictionary
一个的双组分torrent
-file.
要了解其工作原理,您需要了解两件事:
如何torrent
构建-file.
如何bencode
完成.
这两个都在官方bittorrent规范中解释,你可以在这里找到:http://bittorrent.org/beps/bep_0003.html
但是我建议你改为阅读你可以在这里找到的非官方规范:https://wiki.theory.org/BitTorrentSpecification,
因为它更容易理解.