.BigInteger

 

 

RSA and ECC in JavaScript http://www-cs-students.stanford.edu/~tjw/jsbn/html

 

Source Code

The API for the jsbn library closely resembles that of the java.math.BigInteger class in Java. For example:java

  x = new BigInteger("abcd1234", 16);
  y = new BigInteger("beef", 16);
  z = x.mod(y);
  alert(z.toString(16));

will print b60c.api

相關文章
相關標籤/搜索