> Howdy list, 
> 
> I made a script that use Crypt::OpenPGP to 
> encrypt/decrypt some data.
> 
> I was thinking about testing out some other Encryption 
> modules to see if any worked faster/ were more portable.
> Since I'm not an encyption master I thoguht I'd ask for 
> input from any experienced in the matter.
> 
> What I need is to accomplish this:
> 
> use Crypt::OpenPGP;
> my $pgp = Crypt::OpenPGP->new;
> 
> my $ciphertext = $pgp->encrypt(
>                 Data => $string,
>                 Passphrase => $pass,
>                 Armour => 1
>         );
> 
> my $plaintext = $pgp->decrypt(
>                    Data       => $ciphertext,
>                    Passphrase => $pass
>              );
> 
> I am looking to accomplish the above:
>       - running as quickly as possible

Benchmarking the above (as CGI not mod_perl)(including use and new)... 
1000 times gives me:
Crypt::OpenPGP: 83 wallclock secs (73.21 usr +  6.12 sys = 79.34 CPU)
100 times gives me:
Crypt::OpenPGP:  9 wallclock secs ( 7.52 usr +  0.70 sys =  8.22 CPU)
10 times gives me:
Crypt::OpenPGP:  1 wallclock secs ( 0.97 usr +  0.09 sys =  1.06 CPU)

>       - as portably as possible
        
I should have added that Crypt::OpenPGP is a 
"pure perl" implimentation of OpenPGP. So as long as 
you install it its pretty much as portable as you can get.
        
> 
> I'd like to get a few ideas so I can install any needed modules 
> and benchmark them but there are so many to choose from!
> 
> Any thoughts anyone?
> 
> TIA
> 
> Dan

--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>


Reply via email to