You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 7-8.RSVP
Socket
Socket
Sign inDemoInstall

bitcoder

Package Overview
Dependencies
Maintainers
0
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

bitcoder


Version published
Weekly downloads
0
Maintainers
0
Created
Weekly downloads
 

Readme

Source

bitcoder

It's a streaming C++ Node addon for encoding/decoding byte streams to alternate bases.

Right now it only supports Base 32 encoding. An example test.js:

var bitcoder = require('bitcoder')
var encoder = new bitcoder.Encoder()
// Encoder::encode(chunk, flush) - set flush=true for the final chunk
var base32 = encoder.encode(new Buffer("Hello World"), true)
console.log(base32.toString('ascii'))var encoder = new require('bitcoder').Encoder()

Result:

$ node test.js
91jprv3f41bpywkccg

Install

$ npm install bitcoder

WHY?

Mostly to learn the Node C++ API, partially because Base 32 using only JS is slow as a dog, if that dog were a quadruple amputee. Aww, now I made myself sad.

Formalia

Do whatever you want with the code, and I like pull requests, failing tests, and issue tickets.

FAQs

Package last updated on 10 Feb 2011

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc