Make all loop variables local.
Support OSX md5/sha1/sha256/sha512 output.

* Is separated by one space, instead of two.
* Requires the -r flag.