Skip to content

Instantly share code, notes, and snippets.

@ejfinneran
Created March 6, 2015 19:46
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ejfinneran/205cec26d7375ae8ed84 to your computer and use it in GitHub Desktop.
Save ejfinneran/205cec26d7375ae8ed84 to your computer and use it in GitHub Desktop.
Exercise your passphrase memory
pkill -SIGHUP gpg-agent; gpg --list-secret-keys | grep sec | awk '{ print $2 }' | awk 'BEGIN { FS = "/" } ; { print $2 }' | sed '/^$/d' | xargs -t -L 1 -J % gpg -o /dev/null -s -u % /dev/null
@ejfinneran
Copy link
Author

Walks all the secret keys in your GPG keychain and signs /dev/null (outputting to /dev/null) so you can make sure you keep all your various passphrases fresh in your memory.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment