Encrypting a file /tmp/out gpg --output /tmp/out.enc --symmetric --cipher-algo AES256 /tmp/out The above will prompt for a password. Decrypting a file /tmp/out.enc gpg --output /tmp/out.dec -d /tmp/out.enc The above will prompt for a password.