/usr/bin/openssl sha1 full path to sha1 needed, as above for sha256 use this: openssl dgst -sha256 %file%

By michael