Originally posted by whansard
there are many ways for cheap encryption like
passing the input through a filter before and
after compressing like
cat filename | tr whatever | gzip > filename.gz
then to extract
gzip -c filename.gz |tr whatever > filename
i forgot which utility you use to encode a file
using a certain word.
Whansard's got what you want I think. The utility is called crypt
Working of the above syntax:
cat filename | crypt [password] | gzip > filename.X.gz
gunzip -c filename.X.gz | crypt [password] > filename
Not the BEST encryption... if it's really important stuff, you should look into another solution.
p.s.- I'm not on unix at the moment, so I can't verify those commands.
P.S.- You wouldn't need the public key to be present for gpg, the comand would be something like:
gpg -e file.gz <user1> <user2>... <userN>
Where <user> would be the user(s) who will be able to decrypt the message.