-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Kevin Decherf <[email protected]>
- Loading branch information
Showing
1 changed file
with
67 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,67 @@ | ||
# pass-report | ||
# pass-report | ||
|
||
A [pass](https://www.passwordstore.org) extension that reports age and length of | ||
passwords. | ||
|
||
## Description | ||
|
||
`pass report` shows the date and age of the last change of a set of passwords. | ||
It can also shows an indication of their length, inspired by an [ANSSI | ||
article](https://www.ssi.gouv.fr/administration/precautions-elementaires/calculer-la-force-dun-mot-de-passe/) | ||
(_french_). | ||
|
||
This tool uses `git blame` and `git show` to find the last commit editing the | ||
first line of a password, thus ignoring renames and reencrypts. | ||
|
||
## Usage | ||
|
||
``` | ||
Usage: | ||
pass report [-c|--color] [-l|--length] [<password file>] | ||
Report last change's date and age of all passwords or given | ||
password | ||
Options: | ||
-c, --color Show old password (more than 2 years) in yellow | ||
-l, --length Show password length indication | ||
-h, --help Show this help | ||
Password length indication: | ||
very short Less than 8 characters | ||
short Less than 13 characters | ||
medium Less than 17 characters | ||
long 17 characters or more | ||
``` | ||
|
||
## Installation | ||
|
||
### Requirements | ||
|
||
* `pass 1.7.0` or greater | ||
* Your store must use git | ||
|
||
#### Git and GPG | ||
|
||
You must configure git in order to handle `.gpg` files with `git blame` and `git | ||
show`: | ||
|
||
``` gitconfig | ||
[diff "gpg"] | ||
textconv = gpg --no-tty --decrypt --quiet | ||
[blame "gpg"] | ||
textconv = gpg --no-tty --decrypt --quiet | ||
``` | ||
|
||
### Installation from source | ||
|
||
``` bash | ||
git clone https://github.com/Kdecherf/pass-report | ||
cd pass-report | ||
sudo make install | ||
``` | ||
|
||
### Exherbo | ||
|
||
``` bash | ||
cave resolve pass-report -x1 | ||
``` |