JSPM

@modern-dev/jsbn

1.2.5
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 40
  • Score
    100M100P100Q64239F
  • License BSD

The jsbn library is a fast, portable implementation of large-number math in pure JavaScript, enabling public-key crypto and other applications on desktop and mobile browsers.

Package Exports

  • @modern-dev/jsbn

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@modern-dev/jsbn) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

npm NPM

Tom Wu's jsbn library in TypeScript

The jsbn library is a pure JavaScript implementation of arbitrary-precision integer arithmetic.

Installation

$ npm install --save @modern-dev/jsbn

Usage

import { BigInteger } from '@modern-dev/jsbn';

const bi = new BigInteger('91823918239182398123');
console.log(bi.bitLength()); // 67

Similar projects

https://github.com/akalin/jsbn

https://github.com/creationix/jsbn

https://github.com/andyperlitch/jsbn

Licensing

jsbn is released under a BSD license. See LICENSE for details.

Tom Wu