A pass extension that can show you how long you are using a certain password.
- Why not?
- It could be useful to use for password rotation
These commands assume you're using pass together with git. It won't do much if it cannot examine older versions of your password files.
- Enable pass extensions.
- Copy or symlink
age.bash
andages.bash
into your~/.password-store/.extensions
directory.
pass age amazon.com
This command will figure out when you last changed the first line of the amazon.com.gpg
file. It will output the unix-timestamps, a human readable version of that timestamp, and the name of the file. This is convenient for further processing with sort
or grep
or awk
.
pass ages
or, if you're only interested in a certain set of passwords in a subdirectory, say your passwords for work:
pass ages work
Note that this command can be very slow as it likely has to decrypt multiple versions of each password file.
pass age --help
pass ages --help
This will show you how to use the commands... but not much more. Sorry.
pass ages | sort -r
# or
pass ages subdirectory | sort -r
pass ages | sort -r | tail -n 3