On Nov 12, 2008, at 5:59 AM, Jon Schewe wrote: > I've got an old gpg key that I'd like to revoke, but forgot the whole > password and didn't keep a revocation cert around. Anyone have any > suggestions for an automated way to try a sequence of passwords > against > gpg and figure out which one it is? I remember portions of the > password > so I can narrow it down to about 1000 attempts. > > Thanks. Simple shell script with a while loop would do the trick. If you have something you encrypted, simply run a command to decrypt that file, trying all the possible passphrases. Check the exit code for gpg after each run. When you get a 0, you've found your code. f --- Eric Crist