.torrent 是 BitTorrent (BT) 協定 的種子檔案,並非實際媒體內容,而是「索引/地圖」:告訴 BT 客戶端「要下載什麼檔案、切成多少片、每片雜湊值、去哪找 Peer」。
d # 字典開始
8:announce # Tracker URL (單一)
43:https://tracker.example.com/announce
8:creation date # 建立時間 (Unix timestamp)
i1700000000e
4:info # 核心資訊字典 (資訊雜湊計算來源)
d
6:length # 單檔模式:總大小 (bytes)
i1073741824e
4:name # 檔案/資料夾名稱
10:ubuntu.iso
12:piece length # 分片大小 (bytes, 通常 2^n)
i262144e
6:pieces # 所有分片 SHA-1 雜湊連接 (20 bytes each)
2000:...
e
e
多檔模式:info 含 files 列表,每項有 path (列表)、length。
info 字典的 SHA-1 雜湊 (20 bytes, 40 hex chars),種子唯一識別碼,磁力連結核心 urn:btih:...。
announce 請求 (含 info_hash, peer_id, port, uploaded, downloaded, left, event)。bitfield (已有分片位圖)、請求 request 缺少分片、接收 piece、驗證 SHA-1。