Hi
I want to use package "phpseblib" in my laravel project.
I used "composer require phpseclib/phpseclib"
and it installed. but when I try to use this piece of script in my controller it outputs "Class '\Crypt_RSA' not found"
$rsa = new \Crypt_RSA();
Things have changed in the library, you now need to do this:
use phpseclib\Crypt\RSA;
$rsa = new RSA();
This change was made in 2.0.0 as far as I know.
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community