Subject: Re: easiest way to encrypt a file?
To: Jeremy C. Reed <>
From: Courtney R. Spencer <>
List: netbsd-users
Date: 12/17/2004 14:05:54
On Fri Dec 17, 2004 at 10:28:00AM -0800, Jeremy C. Reed wrote:
> I want to place a DSA key file on a server not maintained by myself. It is
> pass-phrase protected, but still I don't want the file used.
> What is the easiest way to encrypt a file with a key to decrypt?
> I have used zip and pgp and gpg to encrypt files. But what other ways do
> you suggest?

bdes is ok. You can use a keyfile with "-k" otherwise it will
ask for a keyphrase.

bdes < file > encryptedfile
bdes -k /tmp/keyfile < file > encryptedfile

bdes -d < encryptedfile > file
bdes -d -k /tmp/keyfile < encryptedfile > file

Courtney R. Spencer