2016-08-01 29 views
1

。在此我的错误,当我想实现RSA算法在PHP中如何解决这个问题,似乎一切都还好,我没有改变任何东西phpseclib错误bigInterger线X未发现

Fatal error: Class 'phpseclib\Math\BigInteger' 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);

如何解决这个问题

回答

2

我的猜测是:你正试图使用​​phpseclib的2.0版本(或者github的master分支),并且没有使用自动加载器(例如Composer),正如这些版本所要求的那样。

如果你不想使用自动加载器,那么你需要使用1.0分支。

+0

无法使用2.0版而不使用自动加载器。 –