I almost failed to search a 37 GB text file in under 1 millisecond
OP attempted this using Python.<p>What would be the fastest way using *nix commands? A naive solution would be something like:<p><pre><code>  echo -n password | sha1sum | cut -d &#x27; &#x27; -f 1 | xargs -I hash grep hash pwned.txt</code></pre>