Thank you, Mark Pryor and Bill Luebkert, for your very informative replies. The tip about the ".t" file was invaluable. In 08-privatekey.t and 09-publickey.t I found just what I had been looking for: the undocumented use of ->d, ->e, and ->n for passing around and managing the values of the generated keys. Now my programs work like champs.
As an aside, Mark, I installed Crypt::RSA from the v1.57 CPAN sources. I agree with your assessment of the installation and use of the Crypt:: modules. But their difficulty actually enhances the attraction they hold for me since, although I do this for my job (read: I actually have to produce something that works from time to time ;D), I love to hack and tinker. If I just didn't have to bother with making money, I would be free to play around with obscure encryption protocols to my heart's content. Although my need for an "Armour" option has been obviated by the d/e/n revelation, I have to say that I'm thoroughly confused by your mention of a reference to it in the synopsis. The only reference I see to it anywhere in the Crypt::RSA distribution is with regard to using it with encryption and signing output... not keys. Are you talking about something else that I'm not seeing? I know I can use Convert::ASCII::Armour on just about anything, but I got the feeling that you were talking about something integrated into Crypt::RSA. Hmmmmm, curiouser and curiouser. Thanks again, -Brian _________________________ Brian H. Oak CISSP CISA Acorn Networks & Security <http://acornnetsec.com/> -----Original Message----- From: mark pryor [mailto:[EMAIL PROTECTED] Sent: Thursday, December 01, 2005 15:12 To: Brian H. Oak Cc: [email protected] Subject: Re: Persistent Crypt::RSA keys? --- "Brian H. Oak" <[EMAIL PROTECTED]> wrote: > I'm trying to integrate RSA encryption and signing into a couple of > Perl programs on Windows, using Crypt::RSA. I have no problem > generating keys and using them immediately for encryption, decryption, > signing, and verification. My problems have been with storing the > keys I've created for later use... kind of crucial to actually > building a working cryptosystem. > Can you tell me how you installed your Crypt-RSA package? I got mine from here http://theory.uwinnipeg.ca/ppms/ (5.8 perl) On a scale of 1-10 installing & using the Crypt:: family of modules is at difficulty 9+. :) If you installed from PPD, then its advisable to go here http://cpan.uwinnipeg.ca/cpan/authors/id/V/VI/VIPUL/Crypt-RSA-1.57.tar .gz to get the latest, which will have all the test scripts. Not that you should install from CPAN source, but at least you can do some quality testing as the author intended. see ./Crypt-RSA-1.57\Crypt-RSA-1.57\t especially look at 09-publickey.t, but before you run it open it up and comment out this line #unlink $keyfile; that way you can see the format of the public key once its written. Also there is a switch for "ASCII::Armour" -- see the synopsis. good luck, Mark Pryor -- __________________________________________ Yahoo! DSL - Something to write home about. Just $16.99/mo. or less. dsl.yahoo.com _______________________________________________ Perl-Win32-Users mailing list [email protected] To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs
