gpg cli command

i am trying to encrypt a file using GPG4win from the command line (symmetric cipher encryption). i usd the following command:
gpg -e -c --cipher-algo TWOFISH d:\test.txt

i received two errors:

First error (happended today):
gpg: problem with the agent: Timeout
gpg: d:\test.txt: encryption failed: Operation cancelled

second error (happened yesterday with a message looks like that):
Enter user-id (empty line to end list):

what user id? i am not using public key encryption to ask for key-id or user-id.

Hi Mohammad,
try without `–encrypt’, e.g. like

gpg -c --cipher-algo TWOFISH d:\test.txt

(As the cipher is symmetric, there is no en- or decrypt. The documentation maybe a bit missleading on this point.)


thanks Bernhard.
yes you are right

for Encryption: gpg -c --cipher-algo CAST5 test.txt
GUI will prompt to ask for passphrase

for Decryption: gpg test.txt.gpg
gpg: WARNING: no command supplied. Trying to guess what you mean …
gpg: CAST5 encrypted data
gpg: encrypted with 1 passphrase