Re:300M Freely Downloadable Pwned Passwords
by nsillik on Thursday August 03, 2017 @07:03PM
(#14924786)
You need to use `echo -n` in order to not have `echo` generate a newline.
Re:300M Freely Downloadable Pwned Passwords
by AlexCoventry on Thursday August 03, 2017 @07:54PM
(#14925159)
Ah, thanks.
Re:300M Freely Downloadable Pwned Passwords
by mrob on Thursday August 03, 2017 @07:12PM
(#14924860)
You can also binary search with "look -b". The version included with Debian Unstable doesn't support large files, but it will search multiple files at once, so you can split without breaking lines, eg. with "split -C 1999m", and search with "look -b SHASUM splitfile*".
Re:300M Freely Downloadable Pwned Passwords
by AlexCoventry on Thursday August 03, 2017 @07:57PM
(#14925180)
Thanks, I knew there had to be an easier way, but couldn't find it.
Re:300M Freely Downloadable Pwned Passwords
by rrauenza on Friday August 04, 2017 @04:59PM
(#14932204)
Make sure you clean your .history if you're using echo to pipe the password...
Re:300M Freely Downloadable Pwned Passwords
by AlexCoventry on Saturday August 05, 2017 @04:41PM
(#14937790)
Thanks. I had done so.
The python sha-1 hexdigest comes out right, though:
In case anyone else has passwords they want to check, this will binary-search them: https://gist.github.com/coventry/5df7885fb0d5caeabb39fcd0e2b...