- Add `get-pass-from-keepass` script to retrieve passwords from KeePass entries - Add `save-pass-to-keepass` script to store passwords in KeePass entries - Update library.md documentation with new KeePass utility functions - Include usage examples and descriptions for new password management tools
12 lines
311 B
Bash
Executable File
12 lines
311 B
Bash
Executable File
#!/usr/bin/env bash
|
|
|
|
get-pass-from-keepass() {
|
|
if [[ -z "$1" ]]; then echo "\$1 is empty."; exit; fi
|
|
local keepass_entry="$1"
|
|
|
|
keepassxc-cli show --show-protected --attributes Password \
|
|
--key-file "$KEEPASS_DATABASE_KEY_FILE" \
|
|
"$KEEPASS_DATABASE_FILE" \
|
|
"$keepass_entry"
|
|
}
|