How to convert public key to BigInteger?

How can I find out the actual implementation of BigInteger functions in Java?

  • I have implemented my own BigInteger like functions using Strings and character arrays, but they are still slower than Java's functions. Is it possible to view the BigInteger function code?

  • Answer:

    You can have a look at the source code http://futureboy.us/temp/BigInteger.java. They use optimizations based on the size of the integer, faster exponentiation and multiplication methods for smaller Integers and stuff.

Harris Siddiqui at Quora Visit the source

Was this solution helpful to you?

Just Added Q & A:

Find solution

For every problem there is a solution! Proved by Solucija.

  • Got an issue and looking for advice?

  • Ask Solucija to search every corner of the Web for help.

  • Get workable solutions and helpful tips in a moment.

Just ask Solucija about an issue you face and immediately get a list of ready solutions, answers and tips from other Internet users. We always provide the most suitable and complete answer to your question at the top, along with a few good alternatives below.