The output in "hash" mode is:

"# " + algorithm name + " HASH"
digest (in hex), two spaces, filename

The output in "hmac" mode is:

"# " + algorithm name + " HASH" + " SALT" (if salt is used)
salt, space, mac (in hex), two spaces, filename
