UNPKG

jsbn

Version:

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.

6 lines (5 loc) 137 B
(function () { var BigInteger = jsbn.BigInteger; var a = new BigInteger('91823918239182398123'); console.log(a.bitLength()); }());