Title: GPG for Windows remembers passwords or not? Post by: NotATether on October 14, 2020, 10:05:46 PM I have created the following two scripts to encrypt and decrypt files on my computer:
Code: #!/bin/bash Code: #!/bin/bash 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. Title: Re: GPG for Windows remembers passwords or not? Post by: Vod on October 17, 2020, 04:10:55 PM 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. Why not use Lastpass? It stores everything encrypted, and it's free for both OS. Title: Re: GPG for Windows remembers passwords or not? Post by: NotATether on October 17, 2020, 08:24:02 PM 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. Why not use Lastpass? It stores everything encrypted, and it's free for both OS. It's because I'm already using Lockwise for that purpose, and I have things like SSH keys and other sensitive info that aren't exactly a username and password, so I need to dump those in an encrypted text file that I can quickly decrypt when I want to edit them. I don't fancy spelling out gpg -e -u KEY <a bunch of other options I use but can't remember> because I can't type that quickly without getting the command wrong. I might end up using the gpg from Cygwin to avoid having to put a Windows gpg program in my %PATH% and diagnosing for the next 3 hours why the command is not found. |