首页 > 解决方案 > 我正在为 bencode 制作一个解码器,我已经有一段时间试图获取它的 info_hash:

问题描述

我正在为 bencode 制作一个解码器,我已经有一段时间试图获取它的 info_hash:

d10:created by18:qBittorrent v4.2.513:creation datei1617086975e4:infod6:lengthi6e4:name10:asdasd.txt12:piece lengthi16384e6:pieces20:�ly���6���c�p�e��7ee

https://wiki.theory.org/index.php/BitTorrentSpecification

我已经阅读了这篇文章 3 次,但我仍然无法弄清楚我应该制作什么 sha1 来获取 info_hash。我会很感激你能给我的任何帮助。

标签: php

解决方案


推荐阅读