NAME
Crypt::Perl::RSA::Generate - RSA key generation
SYNOPSIS
use Crypt::Perl::RSA::Generate ();
#$prkey is a C::P::R::PrivateKey instance.
my $prkey = Crypt::Perl::RSA::Generate::create(2048);
DISCUSSION
Unfortunately, this is quite slow in Perl. It’s faster if you have the optional XS backends for Math::BigInt and/or Bytes::Random::Secure::Tiny, but it’ll still be orders of magnitude slower than OpenSSL.
If you want it to be faster, have a look at Math::ProvablePrime, and see if you can make any improvements there!