Hello, I somewhat new to encryption, and I am new to this forum too.
I am using gpg (GnuPG) 2.4.4, on Linux Mint 22 and I really love it.
I have created a bash script (that seems to be working fine) to decrypt a file, run a spreadsheet, then encrypt the file again. In the script I must delete the old encrypted file before encrypting it again. After encrypting, I delete the plain file.
I am using gpg with the following 2 lines …
to decrypt
gpg -d --passphrase {my_passwd} --batch -o plain_file_name encrypted_file_name
and…
to encrypt
gpg --symmetric --passphrase {my_passwd} --batch -o encrypted_file_name plain_file_name
When DEcrypting the file, gpg responds with…
Attempting to decrypt the file…
gpg: AES256.CFB encrypted data
gpg: encrypted with 1 passphrase
note it says encrypted not decrypted.
When ENcrypting the file, I get no response at all.
I also note in the help screen “gpg –help” I see the line “-d, --decrypt decrypt data (default)” yet I see I did not put the -e in the encryption line but it still encrypts. so I am confused.
I can put the verbose flag (-v) in the encryption line, but that doesn’t tell me if it is encrypted or decrypted.
#1, how do I get gpg to show me what it is doing during the ENcryption process?
#2, why does it say ENcrypting when it is actually DEcrypting?
#3, why is it ENcrypting the file even thou I didn’t put the -e and the default is to DEcrypt?
Thanks for your help, Mark.