Skip to content

Instantly share code, notes, and snippets.

@zer0her0
Created May 6, 2016 16:10
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 zer0her0/7d578ab8c50c50f7176cb6cc24b6a16d to your computer and use it in GitHub Desktop.
Save zer0her0/7d578ab8c50c50f7176cb6cc24b6a16d to your computer and use it in GitHub Desktop.
found an old gpg key and wanted to test that I remembered the password correctly.
echo "1234" | gpg --no-use-agent -o /dev/null --local-user <username/id> -as - && echo "The correct passphrase was entered for this key"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment