I use the following to encrypt a file. I keep it in a script (with variables, not hard coded) and it's usually used so that if I'm encrypting a file for someone I also encrypt it for me so that I can cc the email to me:
Code:
gpg -u mymail@address.com -r recipient@address.com -r mymail@address.com --sign --encrypt filename