[Linux] Add keepass get password functions

This commit is contained in:
Ivan Malison 2016-12-07 13:48:21 -08:00
parent cd21eb25dd
commit 5844b4e921
No known key found for this signature in database
GPG Key ID: 62530EFBE99DC2F8

View File

@ -87,7 +87,7 @@ function confirm() {
# call with a prompt string or use a default
read -r -p "$1" response
case $response in
[yY][eE][sS]|[yY])
[yY][eE][sS]|[yY])
return 0
;;
*)
@ -463,3 +463,13 @@ function localip {
;;
esac
}
function keepass_system_password {
keepasshttp.py --get -u "http://$(hostname).systempassword" |
jq '.[].password' | unescape.py
}
function keepass_keepass_password {
keepasshttp.py --get -u "http://keepass.password" |
jq '.[].password' | unescape.py
}