Skip to content
No description, website, or topics provided.
Other
  1. Other 100.0%
Branch: master
Clone or download

Latest commit

Fetching latest commit…
Cannot retrieve the latest commit at this time.

Files

Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
lib
.travis.yml
META6.json
README.md

README.md

Bencode

To encode and decode bencoding strings used in bittorrent applications

Usage Example

use Bencode;
my $b = Bencode.new();
say $b.bencode({"announce" => "http://torrents.linuxmint.com/announce.php","created by" => "Transmission/2.82 (14160)","creation date" => "1449261537","encoding"=> "UTF-8","info" => {"length" => "1581383680","name" => "linuxmint-17.3-cinnamon-64bit.iso"}});

say $b.bdecode('d8:announce42:http://torrents.linuxmint.com/announce.php10:created by25:Transmission/2.82 (14160)13:creation datei1449261537e8:encoding5:UTF-84:infod6:lengthi1581383680e4:name33:linuxmint-17.3-cinnamon-64bit.isoee');
You can’t perform that action at this time.