Use a dedicated test input file for the file() hash API tests. Set attribute crlf=input so it is always checked out correctly.
Add a file() command API for SHA1, SHA224, SHA256, SHA384, and SHA512.