Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change

Re: public key encryption

by tilly (Archbishop)
on May 29, 2004 at 01:45 UTC ( #357400=note: print w/ replies, xml ) Need Help??

in reply to public key encryption

I had to do something like this where I have to encrypt data on a public server, and very rarely have to decrypt a batch of encrypted entries in a one-off job.

After some time and thinking I found it easiest to use gpg. For encrypting I ran it with IPC::Run and the command-line that I used for encryption was:

gpg -a --no-secmem-warning --always-trust -r username -e
The always-trust is because I didn't want to worry about setting up the trust relationship so that it would accept the public key as valid - it is a public key, it isn't secret.

The private decryption I do by hand using gpg's decrypt-files to do a bunch at a time. Another co-worker is also able to decrypt the files, and the necessary key and instructions is also on a floppy in case the first two of us die.

This solution would not be acceptable if I needed to decrypt data more often.

Comment on Re: public key encryption
Download Code
Replies are listed 'Best First'.
Re^2: public key encryption
by perrin (Chancellor) on Jun 03, 2004 at 22:29 UTC
    Thanks, this is what I ended up with too, since the only GPG module that will pass its tests on Fedora 1 and Perl 5.8.3 is GnuPG::Interface and it relies on questionable IPC::Open3 stuff.

Log In?

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

How do I use this? | Other CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (4)
As of 2015-10-09 07:12 GMT
Find Nodes?
    Voting Booth?

    Does Humor Belong in Programming?

    Results (234 votes), past polls