@echo off
set bits=384
set file=%1
for /F "tokens=* USEBACKQ" %%a in (`openssl dgst -sha%bits% -binary %file% ^| openssl base64 -A`) do set hash=%%a
echo sha%bits%-%hash%