Re:6.5 Million LinkedIn Password Hashes Leaked
by peterwwillis on Wednesday June 06, 2012 @01:54PM
(#4075121)
The first one ramps up memory use like crazy (which I was trying to avoid) and the second one is much better with memory, but you need to move the sha1_hex into the BEGIN block or you're recomputing the hash for every line parsed, thrashing your CPU. Interesting use of 'shift' though, I didn't know you could modify the file argument to -n like that.
[ Parent
| on HN ]
There are no comments on this comment yet.