node-jsbn
v0.1.1
Published
The jsbn library is a fast, portable (through browserify) implementation of large-number math in pure JavaScript, enabling public-key crypto and other applications on desktop and mobile browsers.
Downloads
122
Readme
jsbn: javascript big number
This is rzcoder node-rsa/utils version of jsbn (targeted for nodejs, allowing Buffer)
usage
var BigInteger = require('node-jsbn');
var a = new BigInteger('91823918239182398123');
alert(a.bitLength()); // 67
API
bi.toString()
returns the base-10 number as a string
bi.negate()
returns a new BigInteger equal to the negation of bi
bi.abs
returns new BI of absolute value