Jump to content


This topic is now archived and is closed to further replies.


Handling VERY Large Integers (512-bit +)

Recommended Posts

I'm writing a DSA library for which I need to generate very large primes (512-1024-bit). To generate such large primes I need perform a series of tests (Rabin-Miller) that will possibly make these numbers even greater. Now, I know the integer data type is directly depended on the server machine which can handle number way smaller than what I need.

Is there a trick or possibly an alternative way of dealing with such large numbers in PHP?

Share this post

Link to post
Share on other sites


Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.