JSBI is a pure-JavaScript implementation of the official ECMAScript BigInt proposal.
-
Updated
Aug 15, 2023 - JavaScript
JSBI is a pure-JavaScript implementation of the official ECMAScript BigInt proposal.
⛑️ JSON serialization should never fail
Utils for working with cryptography using native JS implementation of BigInt. It includes arbitrary precision modular arithmetics, cryptographically secure random numbers and strong probable prime generation/testing. It works with Node.js, and native JS, including React and Angular
NEWS! We will soon release a TypeScript transpilation and improvement of this library. Self-contained cryptographic library for use in electronic voting clients. Complete documentation with references to the literature makes it good teaching material.
Check if a value is valid JSON.
Encode and decode arbitrarily large signed and unsigned BigInts
BigInt encoding, a simple way to convert Uint8Arrays into BigInts, and vice versa.
multiply array representation of big numbers
Safely create a BigInt from a numerical string, even one larger than MAX_SAFE_INTEGER.
Add a description, image, and links to the bigint topic page so that developers can more easily learn about it.
To associate your repository with the bigint topic, visit your repo's landing page and select "manage topics."