Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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.

Awesome Lists containing this project

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
```