3 ms·
For ease: # echo -n "password" | sha1sum | cut -b 1-5 5baa6
by wuunderbar 9y ago
For 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