转换器
Bencode 转换器
将 JSON 编码为 Bencode 格式,或将 Bencode 解码为 JSON。
0 字符
关于Bencode转换器
Bencode转换器将JSON数据结构编码为Bencode格式,并将Bencode编码数据解码回可读的JSON。Bencode是由Bram Cohen为BitTorrent协议发明的序列化格式——它将整数编码为i<n>e,字符串编码为<长度>:<字符串>,列表编码为l<项目>e,字典编码为d<键值对>e。所有.torrent文件都是Bencode编码的,Bencode还用于BitTorrent追踪器announce/scrape HTTP响应。此工具使种子文件的检查和修改变得简单直观。
使用方法
要解码.torrent文件,将原始Bencode字符串或十六进制编码字节粘贴到输入框中,点击解码——工具显示包括info_hash组件、announce URL和文件列表的结构化JSON。要创建Bencode,粘贴有效JSON并点击编码。错误消息会提供精确的位置信息,标识格式错误的Bencode语法。
常见用途
- 通过将Bencode结构解码为JSON来检查.torrent文件内容,查看追踪器URL、文件名和分片哈希
- 通过解码为JSON、编辑值后重新编码为Bencode,修改种子元数据(如announce追踪器URL)
- 调试BitTorrent追踪器HTTP announce和scrape响应,验证对等点数量和种子统计信息
- 通过从JSON输入生成有效的Bencode测试向量,构建和测试BitTorrent客户端实现
- 分析Bencode信息字典结构,在BitTorrent协议研究中计算种子info_hash
Frequently Asked Questions About Bencode 转换器
What is Bencode 转换器?
Bencode 转换器 is a free online tool on akousa.net, a platform with 559+ browser-based utilities. 将 JSON 编码为 Bencode 格式,或将 Bencode 解码为 JSON。 No installation is required.
How do I use Bencode 转换器?
Simply open Bencode 转换器 on akousa.net, enter or upload your data, configure any options, and click the action button. Results appear instantly in your browser.
Is Bencode 转换器 free?
Yes, the core Bencode 转换器 experience is free to use without signup. All 559+ tools remain available for everyday use, while Akousa Pro adds optional premium platform features and ad-free browsing.