No description, website, or topics provided.
Perl6
Switch branches/tags
Nothing to show
Latest commit 9b0833f Jun 4, 2016 @palapitta second
Permalink
Failed to load latest commit information.
lib second Jun 4, 2016
.travis.yml initial Jun 4, 2016
META6.json initial Jun 4, 2016
README.md modified Jun 4, 2016

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');