in reply to Re^2: Private keys in Crypt::RSA
in thread Private keys in Crypt::RSA
The key is not a scalar. It is an object. The private key is an object of type Crypt::RSA::Key::Private. When you store it do you serialize the object and then unserialize it on retrieval? If not, you are probably not saving and restoring the object itself.
From the error (and checking the code) it seems that you are trying to treat the key as though it were just the raw key value iteslf (a scalar), which it is not.
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^4: Private keys in Crypt::RSA
by dchoksi (Initiate) on Jun 26, 2007 at 15:08 UTC | |
by headcode (Initiate) on Oct 15, 2013 at 22:46 UTC |
In Section
Seekers of Perl Wisdom