Grep GPG-encrypted YAML password safe.
usage: pw [-h] [-D DB] [-E] [-S] [-v] [[user@]path] Grep GPG-encrypted YAML password database. positional arguments: [user@]path user and path to query for optional arguments: -h, --help show this help message and exit -D DB, --database DB path to password database -E, --echo echo passwords on console (as opposed to copying them to the clipboard) -S, --strict fail unless precisely a single result has been found -v, --version show program's version number and exit
To install pw, simply run:
pip install pw
By default, the password database is located at ~/.passwords.yaml.asc. It uses a straighforward YAML format as in the following example, which is hopefully self-explanatory:
Mail: Google: - U: firstname.lastname@example.org P: "*****" - U: email@example.com P: "*****" N: "John's account" SSH: My Private Server: U: root P: "*****" L: ssh://private-server N: "With great power comes great responsibility." (An Old Entry That Is Ignored): U: foo P: bar Mobile: PIN: 12345 # shortcut notation (only provide password)