I have created the following two scripts to encrypt and decrypt files on my computer:
#!/bin/bash
# Encrypt script
gpg -e -u <REDACTED> -r <REDACTED> -a -o $1 /tmp/gpg123${1} && rm /tmp/gpg123${1}
echo RELOADAGENT | gpg-connect-agent
#!/bin/bash
# Decrypt script
gpg -u <REDACTED> -o /tmp/gpg123${1} -d $1 && gedit /tmp/gpg123${1}
echo RELOADAGENT | gpg-connect-agent
First script encrypts the files into a GPG file and wipes the password from memory so it forces me to enter it again, second script decripts the GPG file to a temporary, that's deleted in the encrypt script, and opens it in a text editor so I can change it if I want. And wipes the password too.
This works fine on Linux, but I need to also get something working on Windows using batch scripts. That's easily doable, but I need to know if there's also gpg-connect-agent for Windows, or if plain old gpg for Windows caches the passwords or doesn't remember them. I really don't want it to remember any passwords I type, that's why I'm asking this.