alzeih / pass-pwned

Password-Store extension for Have I Been Pwned? Pwned Passwords API
MIT License
10 stars 3 forks source link

Support wildcard checks of multiple password files #3

Closed bexelbie closed 5 years ago

bexelbie commented 5 years ago

Please add multiple file checks, for example pass pwned d* could check and report all pass files starting with a d

alzeih commented 5 years ago

As a workaround for right now, you might try:

pushd ~/.password-store; find . -iname "*.gpg" | while read; do pass pwned "$(dirname $REPLY)/$(basename $REPLY .gpg)"; done; popd

bexelbie commented 5 years ago

I did something similar in a less sophisticated bash for loop. Do you think this should be documented as an idea, or do you think extending this with a multi-pass option like pass-update has is a good plan?

alzeih commented 5 years ago

Yeah, I think checking if multiple, or all, passwords are known to hibp is a reasonable thing to want to do. I’ll think about how this might work, and thanks for pointing out pass-update here.

alzeih commented 5 years ago

Okay, globbing is now supported with f289ebf11bc0d87383042f212cc1097707be1136.