cl-bencode is a library for working with the bencode BitTorrent data format.

cl-bencode supports all four different types of bencode values.

  • byte strings as strings or byte vectors
  • integers as integers
  • lists as lists
  • and dictionaries as hashtables

It's proven capable of roundtripping several torrents found in the wild.