# @modern-dev/jsbn

> 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.

Latest version **1.2.5** (published 2019-12-24) · BSD license · 0 weekly downloads

## Install

```sh
npm install @modern-dev/jsbn
pnpm add @modern-dev/jsbn
yarn add @modern-dev/jsbn
bun add @modern-dev/jsbn
```

## Health

**Score 25/100 (F)** — status: abandoned.

Positive: has types; esm support; no vulnerabilities.

Warnings: low downloads.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.2.5 |
| Published | 2019-12-24 |
| First published | 2019-11-23 |
| Weekly downloads | 0 |
| License | BSD |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Dependencies | 0 |
| Unpacked size | 212.7 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 3 |
| Author | Bohdan Shtepan |
| Maintainers | virtyaluk |
| Keywords | jsbn, rng, big-integer, random, generator |

## Links

- npm: https://www.npmjs.com/package/@modern-dev/jsbn
- Repository: https://github.com/modern-dev/jsbn
- Homepage: https://github.com/modern-dev/jsbn#readme
- Issues: https://github.com/modern-dev/jsbn/issues
- npm.io page: https://npm.io/package/@modern-dev/jsbn

## Alternatives

- [random-seedable](https://npm.io/package/random-seedable.md) — 27.9K weekly downloads
- [n2words](https://npm.io/package/n2words.md) — 22.2K weekly downloads
- [@stdlib/math-base-special-factorialln](https://npm.io/package/@stdlib/math-base-special-factorialln.md) — 5.7K weekly downloads
- [@stdlib/math-base-special-abs2](https://npm.io/package/@stdlib/math-base-special-abs2.md) — 1.7K weekly downloads
- [commons-math-interpolation](https://npm.io/package/commons-math-interpolation.md) — 1.4K weekly downloads

## Recent versions

- 1.2.5 (latest) — 2019-12-24
- 1.2.4 — 2019-12-09
- 1.2.3 — 2019-11-24
- 1.2.2 — 2019-11-24
- 1.2.1 — 2019-11-24
- 1.2.0 — 2019-11-23

## README

![npm](https://img.shields.io/npm/v/@modern-dev/jsbn)
![NPM](https://img.shields.io/npm/l/@modern-dev/jsbn)

Tom Wu's `jsbn` library in TypeScript
===================================

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

Installation
------------

```shell script
$ npm install --save @modern-dev/jsbn
```

Usage
-----

```js
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`](LICENSE) for details.

[Tom Wu](mailto:tjw@cs.stanford.edu)

---
_Source: https://npm.io/package/@modern-dev/jsbn · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
