You are not logged in.

#1 2012-09-10 21:22:07

Rasi
Member
From: Germany
Registered: 2007-08-14
Posts: 1,852
Website

KISS password management

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

#2 2012-09-10 21:30:49

SanskritFritz
Member
From: Budapest, Hungary
Registered: 2009-01-08
Posts: 1,616
Website

Re: KISS password management

/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

#3 2012-09-10 21:37:41

graysky
Member
From: /run/user/1000
Registered: 2008-12-01
Posts: 8,613
Website

Re: KISS password management

Seems nice but I don't I'll switch from pwsafe.


CPU-optimized Linux-ck packages @ Repo-ck  • AUR packagesZsh and other configs

Offline

#4 2012-09-10 21:46:09

progandy
Member
Registered: 2012-05-17
Posts: 2,151

Re: KISS password management

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)

Offline

#5 2012-09-11 03:23:44

mjheagle8
Member
From: /home/mjheagle8
Registered: 2009-07-12
Posts: 186

Re: KISS password management

seems cool smile
i've been thinking of doing something similar for a while.


Desktop/Laptop - DWM :: VM - screen
Registered Linux User Number 483137 :: Victory! :: GitHub

Offline

Board footer

Powered by FluxBB