Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

Re: Using Asymmetric keys for Encryption

by benn (Vicar)
on May 11, 2003 at 15:47 UTC ( [id://257243]=note: print w/replies, xml ) Need Help??


in reply to Using Asymmetric keys for Encryption

from the Crypt::OpenPGP manual...
$pgp->encrypt (%args) %args can contain: * Data - The plaintext to be encrypted. This should be a simple scala +r containing an arbitrary amount of data. Data is optional; if unspecified, you should specify a filename (see F +ilename, below).
So you should just be able to call
$pgp->encrypt(Data=>$credit_card_number,Recipients=>$key_id,Armour => +1,);
Cheers,
Ben

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://257243]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others romping around the Monastery: (3)
As of 2024-04-25 16:03 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found