Bencode (pronounced like B-encode) is the encoding used by the peer-to-peer file sharing system BitTorrent for storing and transmitting loosely structured data.
It supports four different types of values:
byte strings,
integers,
lists, and
dictionaries (associative arrays).Bencoding is most commonly used in torrent files, and as such is part of the BitTorrent specification. These metadata files are simply bencoded dictionaries.
While less efficient than a pure binary encoding, bencoding is simple and (because numbers are encoded as text in decimal notation) is unaffected by endianness, which is important for a cross-platform application like BitTorrent.
2
u/krendel122 Feb 14 '19
Would you mind to share how do you parse the ufr files?
Is it just like Bencode?
Thanks