ASPN ActiveState Programmer Network
ActiveState
/ Home / Perl / PHP / Python / Tcl / XSLT /
/ Safari / My ASPN /
Cookbooks | Documentation | Mailing Lists | Modules | News Feeds | Products | User Groups


Recent Messages
List Archives
About the List
List Leaders
Subscription Options

View Subscriptions
Help

View by Topic
ActiveState
.NET Framework
Open Source
Perl
PHP
Python
Tcl
Web Services
XML & XSLT

View by Category
Database
General
SOAP
System Administration
Tools
User Interfaces
Web Programming
XML Programming


MyASPN >> Mail Archive >> perl-mod_perl
perl-mod_perl
Can't use Crypt::RSA
by Arnab other posts by this author
Dec 28 2007 2:37AM messages near this date
RE: Visual Studio 2008 and ActiveState Perl 5.10 updates | Re: Can't use Crypt::RSA
Hi Everyone,

I'm using a small script to use the Crypt::RSA module under windows using
Active Perl v5.8.8 but it is showing  Perl Command Line Interpreter has
encountered a problem and needs to close...

My script....
#############################
#!/usr/bin/perl
use strict;
use warnings;
use Crypt::RSA;
# Use my to declare variables
my ($crypted, $data, $plain, $private, $public, $rsa);
# Set the data that will be encrypted
$data = "hello";
 
# Create a new RSA object
$rsa = new Crypt::RSA or die "Unable to create RSA object!\r\n";
 
# Generate a public private key pair
($public, $private) = $rsa-> keygen(Size => 1024) or
        die "Unable to create key pair!\r\n";
 
undef($rsa); 
########################

Could any body please suggest what may be the parameter for the function
call $rsa-> keygen(....

Thanks in advance.

Arnab


-- 
View this message in context: http://www.nabble.com/Can%27t-use-Crypt%3A%3ARSA-tp14524284p14
524284.html
Sent from the mod_perl - General mailing list archive at Nabble.com.
Thread:
Arnab
Jonathan Vanasco
Michael Peters
Randy Kobes

Privacy Policy | Email Opt-out | Feedback | Syndication
© ActiveState Software Inc. All rights reserved