【问题标题】:Hash calculation in torrent clients洪流客户端中的哈希计算
【发布时间】:2015-01-25 19:50:46
【问题描述】:

我想知道是否有人知道 BitTorrent 客户端中的“哈希”指的是什么,它显然不是文件的 hashcode,而是不同的东西。

我认为这更像是一个指向文件的磁力链​​接,但这与文件本身有何关联?

我只是想了解幕后的构造。
文件 哈希 Torrent 客户端中的哈希

【问题讨论】:

    标签: hash bittorrent torrent magnet-uri


    【解决方案1】:

    torrent 客户端中的hashmagnet-URI 中的hash 是原始bencoded info-dictionary 的SHA1 哈希值-torrent 文件的一部分。

    要了解它的工作原理,您需要知道两件事:

    • torrent 文件是如何构建的。

    • bencodeing 是如何完成的。

    这两个都在官方的 bittorrent 规范中进行了解释,您可以在这里找到:http://bittorrent.org/beps/bep_0003.html

    但是我建议您改为阅读可以在此处找到的非官方规范:https://wiki.theory.org/BitTorrentSpecification
    因为它更容易理解。

    【讨论】:

    • 从torrent中获取具有Info_hash哈希值的真实文件。
    • 要从具有 Info_hash 哈希值的 torrent 中获取真实文件,请删除“d5:files”之前和“Æá67:privatei0ee”之后的所有内容。 9ee4:info||22:rtorrent_meta_
    猜你喜欢
    • 2021-03-30
    • 1970-01-01
    • 1970-01-01
    • 2019-04-21
    • 1970-01-01
    • 2021-03-22
    • 2011-08-27
    • 2016-06-23
    相关资源
    最近更新 更多