Home
Docs
GitHub
Pricing
Blog
Log In

Run Sandworm Audit for your App

Get started
Hold on, we're currently generating a fresh version of this report
Generated on Apr 14, 2024 via pnpm

jsbn 0.1.1

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 summary
Share
0
issues
1
license
1
MIT
Package created
27 Apr 2013
Version published
12 Feb 2017
Maintainers
1
Total deps
1
Direct deps
0
License
MIT

Issues

0
This package has no issues

Licenses

MIT License

Permissive
OSI Approved
This is a human-readable summary of (and not a substitute for) the license. Disclaimer.
Can
commercial-use
modify
distribute
sublicense
private-use
Cannot
hold-liable
Must
include-copyright
include-license
1 Packages, Including:
jsbn@0.1.1
Disclaimer

This deed highlights only some of the key features and terms of the actual license. It is not a license and has no legal value. You should carefully review all of the terms and conditions of the actual license before using the licensed material.

Sandworm is not a law firm and does not provide legal services. Distributing, displaying, or linking to this deed or the license that it summarizes does not create a lawyer-client or any other relationship.

Direct Dependencies

0
All Dependencies CSV
β“˜ This is a list of jsbn 's direct dependencies. Data on all dependencies, including transitive ones, is available via CSV download.
NameVersionSizeLicenseTypeVulnerabilities

Visualizations

Frequently Asked Questions

What does jsbn do?

JSBN, or JavaScript Big Number, is a high-performance, portable library designed for extensive number computations in pure JavaScript. Its primary function is to facilitate public-key cryptography and similar applications on both desktop and mobile browsers. The library is developed from Tom Wu's original code and leverages a module pattern that prevents global leaks and can be utilized on both client and server-side through Node.js.

How do you use jsbn?

To use JSBN, you must first install the package and require it in your JavaScript file. With JSBN, you can create an instance of BigInteger using large numbers as a string. Here's a basic example of how you might use JSBN:

// Include the JSBN library
var BigInteger = require('jsbn').BigInteger;

// Create a new BigInteger object
var bi = new BigInteger('91823918239182398123');

// Use one of the jsbn methods
console.log(bi.bitLength()); // Outputs: 67

Additionally, JSBN provides a comprehensive API enabling you to perform various operations such as addition, subtraction, multiplication, division, and many more on the BigInteger instances.

Where are the jsbn docs?

For detailed information on how to use the library and its API, consult the JSBN documentation on Tom Wu's original website, accessible here: Tom Wu's Original Website. All the API methods listed in the readme file including but not limited to toString(), negate(), abs, compareTo, bitLength, are explained elaborately on Tom Wu's website.