Torrent File & Bencode
- WebTorrent: parse-torrent
- WebTorrent: create-torrent
- BEP 0003: The BitTorrent Protocol Specification
Bencode
Bencode (pronounced like B encode) is the encoding used by the peer-to-peer sharing system BitTorrent for storing and transmitting loosely structured data.
It supports four different types of values:
- byte strings
- integers
- lists
- dictionaries
Bencoding is most commonly used in torrent files. These metadata files are simply bencoded dictionaries.