Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/tijn/pass-age
A pass extension that can show you how long you are using a certain password.
https://github.com/tijn/pass-age
pass pass-extension password-store
Last synced: 3 months ago
JSON representation
A pass extension that can show you how long you are using a certain password.
- Host: GitHub
- URL: https://github.com/tijn/pass-age
- Owner: tijn
- License: gpl-3.0
- Created: 2018-07-21T13:48:22.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2021-08-31T08:37:57.000Z (about 3 years ago)
- Last Synced: 2024-06-16T11:33:16.748Z (5 months ago)
- Topics: pass, pass-extension, password-store
- Language: Shell
- Size: 16.6 KB
- Stars: 3
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-password-store - pass-age
README
# pass age
A [pass](https://www.passwordstore.org) extension that can show you how long you are using a certain password.
## Why
- Why not?
- It could be useful to use for password rotation## Requirements
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.
## Installation
1. Enable pass [extensions](https://www.passwordstore.org/#extensions).
2. Copy or symlink `age.bash` and `ages.bash` into your `~/.password-store/.extensions` directory.## How to use
### Show the age of one password
```shell_session
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`.
### Show password ages of all passwords
```shell_session
pass ages
```or, if you're only interested in a certain set of passwords in a subdirectory, say your passwords for work:
```shell_session
pass ages work
```Note that this command can be very slow as it likely has to decrypt multiple versions of each password file.
### Get help
```shell_session
pass age --help
pass ages --help
```This will show you how to use the commands... but not much more. Sorry.
## Advanced usage
### Show password ages of all passwords, sorted by age, youngest first
```shell_session
pass ages | sort -r
# or
pass ages subdirectory | sort -r
```### Show the oldest three passwords
```shell_session
pass ages | sort -r | tail -n 3
```