Provided by: libcrypt-rsa-parse-perl_0.041-1_all bug

NAME

       Crypt::RSA::Parse - Parse RSA keys

SYNOPSIS

           #General-purpose, native RSA or PKCS8 (DER or PEM)
           my $public_rsa = Crypt::RSA::Parse::public($key_str);
           my $private_rsa = Crypt::RSA::Parse::private($private_key_str);

           $public_rsa->exponent();
           $public_rsa->modulus();     #isa Math::BigInt
           $public_rsa->size();        #i.e., the modulus length in bits

           $private_rsa->version();        #usually 0
           $private_rsa->modulus();        #isa Math::BigInt
           $private_rsa->size();           #i.e., the modulus length in bits

           $private_rsa->publicExponent();     #same as “exponent” on public keys
           $private_rsa->privateExponent();    #isa Math::BigInt
           $private_rsa->prime1();             #isa Math::BigInt
           $private_rsa->prime2();             #isa Math::BigInt
           $private_rsa->exponent1();          #isa Math::BigInt
           $private_rsa->exponent2();          #isa Math::BigInt
           $private_rsa->coefficient();        #isa Math::BigInt

           #Only checks PKCS8 (DER or PEM)
           $public_rsa = Crypt::RSA::Parse::public_pkcs8($pkcs8_str);
           $private_rsa = Crypt::RSA::Parse::private_pkcs8($pkcs8_str);

           {
               #If, for whatever reason, you don’t like MIME::Base64,
               #then customize this. The module must have a decode() function.
               #
               local $Crypt::RSA::Parse::BASE64_MODULE = '..';

               Crypt::RSA::Parse::...
           }

DESCRIPTION

       Not much else to say: it parses RSA keys for useful information!

       The public keys are represented via the "Crypt::RSA::Parse::Public" class, while private
       keys are represented via "Crypt::RSA::Parse::Private".

AUTHOR

           Felipe M. L. Gasper
           CPAN ID: FELIPE

REPOSITORY

           https://github.com/FGasper/p5-Crypt-RSA-Parse

COPYRIGHT

       This program is free software; you can redistribute it and/or modify it under the same
       terms as Perl itself.

       The full text of the license can be found in the LICENSE file included with this module.