Hello I'm trying to encrypt data in a Laravel app and I keep getting this error when trying to create new keys
Error Call to undefined method Pikirasa\RSA::create()
My Controller code looks like this:
use Pikirasa\RSA;
class SiteMainController extends Controller
{
public function mytestfun(Request $request)
{
$rsa = new Pikirasa\RSA('storage_path/to/nonexistent_public.pem', 'storage_path/to/nonexistent_private.pem');
$rsa->create();
//additional logic here ....
}
}```
What my be causing this?
Hello I'm trying to encrypt data in a Laravel app and I keep getting this error when trying to create new keys
Error Call to undefined method Pikirasa\RSA::create()
My Controller code looks like this: