Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number

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.

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 all is quiet...

How do I use this? | Other CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (5)
As of 2018-06-19 01:11 GMT
Find Nodes?
    Voting Booth?
    Should cpanminus be part of the standard Perl release?

    Results (111 votes). Check out past polls.