Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Crypt::OpenPGP 1

Status
Not open for further replies.

cb49747

MIS
Apr 23, 2002
181
US
Trying to encrypt a file before sending it to someone and need a little help.

I have installed the Crypt::OpenPGP module on my server, however have been unable to encrypt a file. The documentation on cpan was not very helpfull to a newbie. Does anyone know of where I can get some better documentation on this, or a couple of ideas to get me started. I have the public key from the person who I'm sending the file to.

Any help would be appreciated.

Chris Burger
 
Potential alternative route....

I don't know what version of PGP you are using, but the older versions have a command line option where you can encrypt/decrypt in a script environment.
I just checked out the PGP web site and they appear to have gone completely commercial (I got it free years ago). They are now selling the command line option with the later releases.

Not sure if it's an option but you might be able to work with GPG, which the GNU version (freeware) to replace PGP. I have no idea if it can handle PGP keys so you may need to do a bit of digging and convince your public key holder to switch if necessary.
(Actually I have no idea if GPG offers a command line utility - hope I don't send you on a wild goose chase.)

BC
 
Just checked the GPG mini "how to" and the command line is an option.

You should therefore be able to generate data encrypted with the recipient's key and send it off, all from within a perl script.

HTH

BC
 
I ended up using gnu version of GPG and it worked great.
Thank you billycairn a gold star for you.

Chris Burger
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top