1Crypt::RSA::Key::PublicU(s3e)r Contributed Perl DocumentaCtriyopnt::RSA::Key::Public(3)
2
3
4
6 Crypt::RSA::Key::Public -- RSA Public Key Management.
7
9 $key = new Crypt::RSA::Key::Public;
10 $key->write ( Filename => 'rsakeys/banquo.public' );
11
12 $akey = new Crypt::RSA::Key::Public (
13 Filename => 'rsakeys/banquo.public'
14 );
15
17 Crypt::RSA::Key::Public provides basic key management functionality for
18 Crypt::RSA public keys. Following methods are available:
19
20 new()
21 The constructor. Reads the public key from a disk file when called
22 with a "Filename" argument.
23
24 write()
25 Causes the key to be written to a disk file specified by the "File‐
26 name" argument.
27
28 read()
29 Causes the key to be read from a disk file specified by "Filename"
30 into the object.
31
32 serialize()
33 Creates a Data::Dumper(3) serialization of the private key and
34 returns the string representation.
35
36 deserialize()
37 Accepts a serialized key under the "String" parameter and coverts
38 it into the perl representation stored in the object.
39
40 "check()"
41 Check the consistency of the key. Returns undef on failure.
42
44 Vipul Ved Prakash, <mail@vipul.net>
45
47 Crypt::RSA::Key(3), Crypt::RSA::Key::Private(3)
48
49
50
51perl v5.8.8 2007-04-17 Crypt::RSA::Key::Public(3)