/ Published in: Bash

Get password from keychain (OSX)
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
get_pw () { security 2>&1 >/dev/null find-generic-password -ga $USER |ruby -e 'print $1 if STDIN.gets =~ /^password: "(.*)"$/' }
URL: http://hints.macworld.com/article.php?story=20130722033452283
Comments
