Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?

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]
[stevieb]: Finally, somehow, fried my first Raspberry Pi :) It was one I was using in a mock grow room with no protection, so I think humidity got to it.

How do I use this? | Other CB clients
Other Users?
Others contemplating the Monastery: (9)
As of 2018-01-16 21:51 GMT
Find Nodes?
    Voting Booth?
    How did you see in the new year?

    Results (192 votes). Check out past polls.