Skip to content
Advertisement

phpseclib error bigInterger not found on line x

hi this my error when i want implement RSA algorithm in PHP how to fix this problem everything seems okay and i not changing anything

Fatal error: Class ‘phpseclibMathBigInteger’ not found in phpseclib/Crypt/RSA.php on line 509 this is line 509 in __construct method of RSA class $this->zero = new BigInteger(0);

how to fix this problem

Advertisement

Answer

My guess: you’re trying to use either the 2.0 version (or the master branch in github) of phpseclib and aren’t using an autoloader (eg. Composer), as is required by those versions.

If you don’t want to use an autoloader then you’ll need to use the 1.0 branch.

User contributions licensed under: CC BY-SA
10 People found this is helpful
Advertisement