Skip site navigation (1)Skip section navigation (2)

FreeBSD Manual Pages

  
 
  

home | help
Crypt::Perl::RSA::GeneUser(Contributed Perl DocumCrypt::Perl::RSA::Generate(3)

NAME
       Crypt::Perl::RSA::Generate - RSA	key generation

SYNOPSIS
	   use Crypt::Perl::RSA::Generate ();

	   #$prkey is a	Crypt::Perl::RSA::PrivateKey instance.
	   my $prkey = Crypt::Perl::RSA::Generate::create(2048);

DISCUSSION
       Unfortunately, this is quite slow in Perlatoo slow, in fact, if you
       donat have either Math::BigInt::GMP or Math::BigInt::Pari.  The logic
       here will still run under pure Perl, but	itall take too long to be
       practical.

       The current Math::ProvablePrime backend is slated to be replaced	with
       Math::Prime::Util; once that happens, pure-Perl operation should	be
       much more feasible.

ALTERNATIVES
       Crypt::OpenSSL::RSA - probably the fastest way to generate RSA keys in
       perl. (It relies	on XS, so this project canat use it.)
       Use the "openssl" binary	OpenSSL	<http://openssl.org> directly, e.g.,
       "my $rsa_pem = qx/openssl genrsa/". Most	*NIX systems can do this.

       NOTE: As	of December 2016, Crypt::PK::RSA is NOT	suitable for key
       generation because it can only generate keys with up to a 512-bit
       modulus.

perl v5.32.1			  2017-02-08	 Crypt::Perl::RSA::Generate(3)

NAME | SYNOPSIS | DISCUSSION | ALTERNATIVES

Want to link to this manual page? Use this URL:
<https://man.freebsd.org/cgi/man.cgi?query=Crypt::Perl::RSA::Generate&sektion=3&manpath=FreeBSD+13.0-RELEASE+and+Ports>

home | help