php - 我正在为 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 - PHP 在缓存标头更改且内容已过期时获取新内容
- python-3.x - argparse 添加选项字符串
- javascript - 创建 ES6 类的实例后,我可以立即将实例绑定到非静态方法吗?
- java - 等待 CompletableFuture 完成,然后返回不同的值?
- google-cloud-platform - Stackdriver 警报“减少”条件失火
- c++ - C++ 随机幂序列的最后一位
- c# - VSTO MailItem.Recipients 在 C# 中检索电子邮件地址
- r - 使用 ggplot 创建具有 x 和 y 变量的条形图时遇到问题
- python - 使用 Python Locust 进行负载测试时,reqs/sec 不正确
- css - 当浏览器不支持功能查询时究竟会发生什么?