pollardsrho

integer factorization using Pollard's rho algorithm with Brent cycle detection, Miller–Rabin primality test

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.