Linux.com

Simple solution

Posted by: Anonymous Coward on March 17, 2007 12:01 AM
A simple solution from the book "Linux Security Cookbook" (O'Reilly, June 2003, ISBN : 0-596-00391-9) is to create a text file with all accounts in a same format (e.g. logintabpasswordtabcomment) and encrypt this with GnuPG. With this little bash script, you can search for entries in the file.
<tt>  #!/bin/bash
  PWFILE=$HOME/lib/passwords.gpg
 <nobr> <wbr></nobr>/usr/bin/gpg -d $PWFILE |<nobr> <wbr></nobr>/bin/grep -i $@</tt>
In the bash you can type mypass ebay and you will get rows include ebay.

#

Return to How to create a command-line password vault