$ echo 'mySuperPassword'| gpg --output someEncrypted.data --symmetric --cipher-algo AES256 --pinentry-mode loopback --passphrase-fd 0 myData.txt
$ echo 'mySuperPassword' | gpg --decrypt --output myData.txt --pinentry-mode loopback --passphrase-fd 0 someEncrypted.data