bncode
bncode copied to clipboard
bencoding (bittorrent) in javascript
Currently we can stream file and decoding it. Is is possible to implement encoding stream? I want to do this ``` var cryptoStream = crypto.createHash('sha1'); cryptoStream.on('end', function(){ console.log(cryptoStream.digest('hex')); }); var...
# Bug https://github.com/a2800276/bncode/blob/704e8d5ddd4f9257d4e787191d2cc7c7ed76ad98/bncode.js#L370-L372 ```Javascript var keys = Object.keys(obj).sort() ``` This is **not** the correct way of sorting dictionary entries. The encoder is producing specification-**incompliant** octets that’ll be floating around in...