Updated to use "openssl dgst" instead of just "openssl <hashName>" for compatability with older versions of OpenSSL