You are not logged in.
Pages: 1
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.
example:
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:
http://www.youtube.com/watch?v=1LT3slnh3DE
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.
Douglas Adams
Offline
/me likes it, although I doubt I'll switch from KeePass anytime soon.
zʇıɹɟʇıɹʞsuɐs AUR || Cycling in Budapest with a helmet camera || Revised log levels proposal: "FYI" "WTF" and "OMG" (John Barnette)
Offline
Seems nice but I don't I'll switch from pwsafe.
CPU-optimized Linux-ck packages @ Repo-ck • AUR packages • Zsh and other configs
Offline
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)
| alias CUTF='LANG=en_XX.UTF-8@POSIX ' |
Offline
seems cool
i've been thinking of doing something similar for a while.
Desktop/Laptop - DWM :: VM - screen
Registered Linux User Number 483137 :: Victory! :: GitHub
Offline
Pages: 1