Decrypt Keychain with Password outside of Keychain-App
Solution 1:
I use the following script to extract a password from the Keyring:
$ cat get_password_from_keyring
#!/bin/bash
security find-generic-password -a $1 -g 2>&1 | grep password | cut -d \" -f 2