Crypt::RSA::Key::Public -- RSA Public Key Management.
$key = new Crypt::RSA::Key::Public; $key->write ( Filename => 'rsakeys/banquo.public' ); $akey = new Crypt::RSA::Key::Public ( Filename => 'rsakeys/banquo.public' );
Crypt::RSA::Key::Public provides basic key management functionality for Crypt::RSA public keys. Following methods are available:
The constructor. Reads the public key from a disk file when called with a Filename argument.
Filename
Causes the key to be written to a disk file specified by the Filename argument.
Causes the key to be read from a disk file specified by Filename into the object.
Creates a Data::Dumper(3) serialization of the private key and returns the string representation.
Accepts a serialized key under the String parameter and coverts it into the perl representation stored in the object.
String
check()
Check the consistency of the key. Returns undef on failure.
Vipul Ved Prakash, <mail@vipul.net>
Crypt::RSA::Key(3), Crypt::RSA::Key::Private(3)
To install Crypt::RSA, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Crypt::RSA
CPAN shell
perl -MCPAN -e shell install Crypt::RSA
For more information on module installation, please visit the detailed CPAN module installation guide.