Skip to content

Instantly share code, notes, and snippets.

@chauncey-garrett
Last active November 18, 2016 16:57
Show Gist options
  • Save chauncey-garrett/7823c3eb18308661c82a64e35b888ed2 to your computer and use it in GitHub Desktop.
Save chauncey-garrett/7823c3eb18308661c82a64e35b888ed2 to your computer and use it in GitHub Desktop.
Get password from macOS keychain
security find-generic-password -a "insert_account_name_here" -g 2>&1 \
| grep password \
| sed -e "s/password: \"//" -e "s/\"//"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment