I have a script that has a part that looks like that:
for file in `ls *.tar.gz`; do echo encrypting $file gpg --passphrase-file /home/$USER/.gnupg/backup-pas
make sure the user that is running the cron job has the permissions needed to encrypt the file.