Hacker News new | past | comments | ask | show | jobs | submit login

You can use `read -s` to avoid risking having someone behind you read your password on your screen as you type it.

(echo -n "Password: "; read -s pw; curl -s https://api.pwnedpasswords.com/range/$(echo -n $pw | shasum | cut -b 1-5) | grep $(echo -n $pw | shasum | cut -b 6-40 | tr a-f A-F))




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

Search: