Last active
November 18, 2016 16:57
-
-
Save chauncey-garrett/7823c3eb18308661c82a64e35b888ed2 to your computer and use it in GitHub Desktop.
Get password from macOS keychain
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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