Well, I thought about how I can make handling of passwords easily usable using only the tools I have installed anyway.
And here I want to share the result with you:
First thing to do is to create a password file, that is gpg encrypted. This file has one line for each service.
PASSWORD1 USER1 amazon PASSWORD2 USER2 ebay PASSWORD3 USER3 archbbs
This file i search using a little bash script. Simply search for the keywords at the end of the line. The script will put the username in primary selection and the actual password in clipboard.
Script looks like this:
#!/bin/bash while read -r pass user _; do printf %s "$user" | xclip printf %s "$pass" | xclip -sel clip done < <(gpg2 --batch --decrypt PASSWORDFILE.gpg 2>/dev/null | grep "$@") notify-send "Copied username to Primary and Passwort to Clipboard" sleep 10 xclip -selection clipboard </dev/null xclip </dev/null notify-send "Clipboards cleared"
This little script I call with dmenu which simply reads a file with all those service names - one per line. This makes it easy to edit the dmenu script if your password file grows. Simply add another line with the name of the keyword.
The result looks something like this:
Last edited by Rasi (2013-09-09 00:21:32)
He hoped and prayed that there wasn't an afterlife. Then he realized there was a contradiction involved here and merely hoped that there wasn't an afterlife.
Seems nice, but I don't like that all passwords are decrypted each time you select one. Won't switch from KeePass though. This lets me access the password database on windows, too. I'll keep pwsafe in mind, it seems to have a windows equivalent, too.
Last edited by progandy (2012-09-10 21:47:52)