2 ms·
Or, for those that don't want to use Python (in case it isn't installed, or requires a non-core module, I dunno) but have access to a Linux box: # echo -n
by kbenson 9y ago
Or, for those that don't want to use Python (in case it isn't installed, or requires a non-core module, I dunno) but have access to a Linux box:
# echo -n "password" | sha1sum
5baa61e4c9b93f3f0682250b6cf8331b7ee68fd8 -
Take the first 5 characters, in this case "5baa6" and use at the end of the API endpoint in your browser. E.g.
https://api.pwnedpasswords.com/range/5baa6
Then take the all the rest of the hash after the first 5 characters, in this case "1e4c9b93f3f0682250b6cf8331b7ee68fd8" and ctrl-f search the results page for it.
- wuunderbar 9y agoFor ease: # echo -n "password" | sha1sum | cut -b 1-5 5baa6
- kbenson 9y agoYeah, but you would need two commands then, because you need to search for bytes 6-40 in the resulting output. I made a one-liner farther down the comments.[1] 1: https://news.ycombinator.com/item?id=16434244 https://news.ycombinator.com/item?id=16434244