Last active
March 12, 2020 18:22
-
-
Save mfyz/23a2ad4ea7f25b1ca23e05844ee2abf6 to your computer and use it in GitHub Desktop.
Get password from macOS keychain in command line
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
# First save the password in keychain as new password and give it a name | |
security -q find-generic-password -a __CURRENT_USERNAME__ -s __PASSWORD_NAME__ -w |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment