Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

obligatory comments

- not portable

- useless use of backticks

printf password|openssl sha1|cut -c6-40|grep -f - hacked.txt



Why are you extracting 35 characters with 'cut -c6-40'? SHA1 produces a 160-bit message digest. That's 20 bytes or 40 hex-digits.


typo.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: