Skip to content

Instantly share code, notes, and snippets.

@froi
Last active June 30, 2021 04:34
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 froi/25aad658ac8ece2cf0f4b700534585a4 to your computer and use it in GitHub Desktop.
Save froi/25aad658ac8ece2cf0f4b700534585a4 to your computer and use it in GitHub Desktop.
Command to test gpg key
#!/usr/bin/env sh
echo "1234" | gpg --no-use-agent -o /dev/null --local-user <KEYID> -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