GithubHelp home page GithubHelp logo

tijn / pass-age Goto Github PK

View Code? Open in Web Editor NEW
3.0 3.0 0.0 17 KB

A pass extension that can show you how long you are using a certain password.

License: GNU General Public License v3.0

Shell 100.00%
pass pass-extension password-store

pass-age's Introduction

pass age

A pass 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.
  2. Copy or symlink age.bash and ages.bash into your ~/.password-store/.extensions directory.

How to use

Show the age of one password

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

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.

Get help

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

pass ages | sort -r
# or
pass ages subdirectory | sort -r

Show the oldest three passwords

pass ages | sort -r | tail -n 3

pass-age's People

Contributors

madeddie avatar tijn avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.