Crypt::Perl::RSA::Parse - RSA key parsing
use Crypt::Perl::RSA::Parse (); # These accept either DER or PEM, native format or PKCS8/SPKI. my $prkey = Crypt::Perl::RSA::Parse::private($buffer); my $pbkey = Crypt::Perl::RSA::Parse::public($buffer); # Note that this accepts a structure, not raw JSON. my $key = Crypt::Perl::RSA::Parse::jwk($jwk_hr);
See Crypt::Perl::RSA::PrivateKey and Crypt::Perl::RSA::PublicKey for descriptions of the interfaces that this module returns.
To install Crypt::Perl, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Crypt::Perl
CPAN shell
perl -MCPAN -e shell install Crypt::Perl
For more information on module installation, please visit the detailed CPAN module installation guide.