zxcvbn-python icon indicating copy to clipboard operation
zxcvbn-python copied to clipboard

CLI is not working when pipying from pass

Open dtrainych opened this issue 2 years ago • 1 comments

I want to pipe password from passwordstore to zxcvbn, but zxcvbn keeps asking for input a password as is there is no stdout

➜  zxcvbn-python git:(master) ✗ pass test              
x3]`@;t*K`R^!"4qVsR"wbO&^
➜  zxcvbn-python git:(master) ✗ pass test | zxcvbn | jq
Password: 

dtrainych avatar Oct 24 '22 16:10 dtrainych

I am not familiar with pass. Is it possible it is outputting your password to stderr instead of stdout? Does pass test 2>&1 | zxcvbn | jq work?

It works fine for me with echo "password" | zxcvbn | jq

whwright avatar Oct 25 '22 16:10 whwright