View Project

BencodeJS

This is an implementation of Bencode for JavaScript. Bencode is used for DHTs, Torrents, and Google DataServers. Its a lightweight fast data serialization. Wikipedia

I have also made an implementation of Bencode with Java, Rust and PHP.

Usage

Here are some examples of how to use the Bencode library.

Bencode

//DATA MUST BE IN THE FORMAT: Uint8Array
var ben = new Bencode(data).decode();
console.log(ben);

Languages

Languages used: JavaScript HTML